/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f12;
    color: #e8e9ed;
    line-height: 1.5;
}

/* ===== HEADER ===== */
header {
    background: #1a1b1e;
    height: 70px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-bottom: 1px solid #2c2e33;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #9a9ca5;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.menu-btn:hover {
    background: #2c2e33;
    color: #818cf8;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.logo span {
    color: #818cf8;
}

/* ===== SEARCH ===== */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b6e7c;
}

.search-box input {
    width: 100%;
    height: 44px;
    padding: 0 45px 0 45px;
    border: 1px solid #2c2e33;
    border-radius: 30px;
    background: #1a1b1e;
    color: #e8e9ed;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #6b6e7c;
}

.search-box input:focus {
    outline: none;
    border-color: #818cf8;
    background: #1f2024;
}

.search-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #2c2e33;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #9a9ca5;
    border: 1px solid #3a3c44;
}

/* ===== HEADER RIGHT ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    color: #9a9ca5;
    cursor: pointer;
}

.icon-btn:hover {
    background: #2c2e33;
    color: #818cf8;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    border-radius: 40px;
    cursor: pointer;
}

.user:hover {
    background: #2c2e33;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e8e9ed;
}

.user-name i {
    color: #6b6e7c;
    font-size: 12px;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    background: #1a1b1e;
    border-right: 1px solid #2c2e33;
    padding: 20px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar nav {
    padding: 0 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #9a9ca5;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 2px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item i {
    width: 20px;
    font-size: 18px;
}

.nav-item:hover {
    background: #2c2e33;
    color: #e8e9ed;
}

.nav-item.active {
    background: #2c2e33;
    color: #818cf8;
    border-left: 3px solid #818cf8;
}

.divider {
    height: 1px;
    background: #2c2e33;
    margin: 20px 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 25px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ===== STATS CARDS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1a1b1e;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    border: 1px solid #2c2e33;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.stat-title {
    font-size: 14px;
    color: #9a9ca5;
    margin-bottom: 4px;
}

.stat-date {
    font-size: 12px;
    color: #6b6e7c;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 13px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #2c2e33;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #818cf8;
    font-size: 22px;
}

/* ===== SECTIONS ===== */
.section {
    background: #1a1b1e;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 25px;
    border: 1px solid #2c2e33;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2c2e33;
}

/* ===== ACTION CARDS ===== */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-card {
    background: #1f2024;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #2c2e33;
    transition: all 0.2s;
}

.action-card:hover {
    background: #2c2e33;
    border-color: #818cf8;
}

.action-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: #2c2e33;
    color: #818cf8;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #3a3c44;
}

.action-card:hover .action-btn {
    background: #818cf8;
    color: white;
    border-color: #818cf8;
}

.action-card span {
    font-size: 14px;
    font-weight: 500;
    color: #e8e9ed;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1b1e;
    border-top: 1px solid #2c2e33;
    padding: 40px 30px 20px;
    display: flex;
    justify-content: space-between;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-content h4 span {
    color: #818cf8;
}

.footer-content h5 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-content p {
    color: #9a9ca5;
    font-size: 14px;
    max-width: 250px;
    line-height: 1.6;
}

.footer-content ul {
    list-style: none;
}

.footer-content ul li {
    margin-bottom: 8px;
}

.footer-content ul li a {
    color: #9a9ca5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-content ul li a:hover {
    color: #818cf8;
}

.social {
    display: flex;
    gap: 12px;
}

.social a {
    width: 36px;
    height: 36px;
    background: #2c2e33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9ca5;
    text-decoration: none;
    transition: all 0.2s;
}

.social a:hover {
    background: #818cf8;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2c2e33;
    color: #6b6e7c;
    font-size: 13px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1b1e;
}

::-webkit-scrollbar-thumb {
    background: #3a3c44;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f52a0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sidebar {
        width: 70px;
    }

    .sidebar .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 15px;
    }

    .nav-item i {
        margin: 0;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 15px;
    }

    .header-search {
        display: none;
    }

    .user-name {
        display: none;
    }

    .sidebar {
        width: 60px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .stats {
        gap: 12px;
    }

    .stat-value {
        font-size: 22px;
    }

    .cards-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .action-card {
        flex: 0 0 auto;
    }

    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 55px;
    }

    .main-content {
        padding: 15px 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-value {
        font-size: 22px;
    }

    .section {
        padding: 18px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-content p {
        max-width: 100%;
    }

    .social {
        justify-content: center;
    }
}

/* ===== FOCUS STATES ===== */
*:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: #818cf8;
    color: white;
}