﻿/* --- RESET & VARIABLES --- */
* {
/*    margin: 0;
    padding: 0;*/
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4F46E5;
    --primary-light: #EEF2F6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-sidebar: #0F172A;
    --bg-body: #F8FAFC;
    --card-bg: #FFFFFF;
    --border-color: #E2E8F0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* --- LAYOUT STRUCTURE --- */
/* Sidebar */
aside {
    width: 300px;
    background-color: var(--bg-sidebar);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 24px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid #1E293B;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sidebar-brand span {
/*        color: var(--primary-color);*/
    }

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    flex-grow: 1;
}

.sidebar-item {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #94A3B8;
    transition: all 0.2s;
}

    .sidebar-item:hover, .sidebar-item.active {
        background-color: var(--primary-color);
        color: #FFFFFF;
    }

/* Main Content Area */
main {
    margin-left: 300px;
    flex-grow: 1;
    padding: 32px;
    transition: all 0.3s ease;
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 300px;
    outline: none;
}

.user-profile {
    display: flex;
    align-items: center;
}

/* --- COMPONENTS --- */
.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-trend {
    font-size: 12px;
    font-weight: 500;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background-color: #4338CA;
    }

.btn-secondary {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

    .btn-secondary:hover {
        background-color: var(--primary-light);
    }

/* --- PAGES FUNCTIONAL CORES (TAB SYSTEMS) --- */
.page-content {
    display: none;
}

    .page-content.active-page {
        display: block;
    }

/* Action bar for sub-pages */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive Hamburger Menu */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    aside {
        left: -300px;
    }

        aside.open {
            left: 0;
        }

    main {
        margin-left: 0;
        padding: 16px;
    }

    .menu-toggle {
        display: block;
        margin-right: 12px;
    }

    header {
        justify-content: flex-start;
    }

/*    .user-profile {
        margin-left: auto;
    }*/
}

@media (max-width: 640px) {
    .search-box {
        display: none; /* Ẩn tìm kiếm trên mobile để tối ưu không gian */
    }

    .action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

        .action-bar .btn {
            width: 100%;
        }
}
/*my_css start*/
.bg-trans-main {
    background: linear-gradient(to right, #128f8140, #36b3affa);
}
.bg-main {
    background: linear-gradient(to right, #128f818a, #36b3affa);
}
.sign-in > #items-header {
    background: linear-gradient(to right, #128f81, #64bdba75);
}
#btn-login {
    background: linear-gradient(to right, #128f81, #20bdb8);
}
.sign-in>input {
    width: 200px;
}
#inp-id, #inp-pass, #inp-fty, #inp-lang {
    width: 350px;
}
@media (min-width: 640px) {
    .sign-in {
        height: fit-content;
        max-width: 500px;
    }
}
@media (max-width: 640px) {
    .sign-in {
        width: 100%;
    }
}
@media(max-width: 480px) {
    #inp-id, #inp-pass, #inp-fty, #inp-lang {
        width: 200px;
    }
}
/*terms policies*/
.terms-policies {
    max-width: 600px;
    height: fit-content;
}
.terms-policies-content {
    max-height: 500px;
    overflow-y: scroll;
    overflow-x: hidden;
}
/*.error-pin {
    border
}*/
input.error-pin:focus-visible{
    border: 1px solid red;
    border-color: red;
    outline: none;
}
/*my_css end*/