@font-face {
    font-family: TahomaCustom;
    src: local("Tahoma");
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: TahomaCustom, Tahoma, Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
}


/* Sidebar */

.sidebar {
    width: 270px;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    min-height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-logo {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );
    color: white;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.logo-title {
    font-weight: bold;
    font-size: 15px;
}

.logo-subtitle {
    color: #9ca3af;
    font-size: 10px;
    margin-top: 4px;
}

.sidebar-menu {
    padding: 15px 12px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 5px;
    font-size: 13px;
    transition: 0.2s;
}

.sidebar-menu a:hover {
    background: #f3f6ff;
    color: #2563eb;
}

.sidebar-menu a.active {
    background: #eef2ff;
    color: #2563eb;
    font-weight: bold;
}

.sidebar-menu i {
    font-size: 17px;
}

.menu-title {
    font-size: 10px;
    color: #9ca3af;
    padding: 18px 14px 8px;
}


/* Main */

.main-content {
    width: calc(100% - 270px);
    margin-right: 270px;
    min-height: 100vh;
}


/* Topbar */

.topbar {
    height: 75px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.system-date {
    color: #6b7280;
    font-size: 12px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
}


/* Content */

.page-content {
    padding: 25px;
}


/* Dashboard */

.page-title {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 5px;
}

.page-description {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 25px;
}


/* Cards */

.stat-card {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 15px;
    padding: 20px;
    height: 100%;
    transition: 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 15px;
    background: #eef2ff;
    color: #4f46e5;
}

.stat-title {
    font-size: 12px;
    color: #6b7280;
}

.stat-value {
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
}


/* Dashboard boxes */

.dashboard-box {
    background: white;
    border: 1px solid #e8eaf0;
    border-radius: 15px;
    padding: 20px;
}

.dashboard-box-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 18px;
}


/* Quick actions */

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    color: #374151;
    margin-bottom: 10px;
    transition: 0.2s;
}

.quick-action:hover {
    background: #f8faff;
    border-color: #c7d2fe;
    color: #2563eb;
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Status */

.status-active {
    color: #16a34a;
}

.status-inactive {
    color: #dc2626;
}


/* Responsive */

@media (max-width: 992px) {

    .sidebar {
        transform: translateX(100%);
        transition: 0.3s;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        margin-right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .system-date {
        display: none;
    }
}


@media (max-width: 576px) {

    .page-content {
        padding: 15px;
    }

    .topbar {
        padding: 0 15px;
    }

    .page-title {
        font-size: 18px;
    }

}