*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f7f8ff;
    font-family:Arial, sans-serif;
    color:#101828;
}

.admin-wrapper{
    display:flex;
    min-height:100vh;
}

/* SIDEBAR */
.sidebar{
    width:260px;
    min-height:100vh;
    background:linear-gradient(180deg,#07122f,#0f1d3d);
    padding:22px 16px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    z-index:1000;
}

.brand-box{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
    margin-bottom:30px;
}

.brand-icon{
    width:44px;
    height:44px;
    border-radius:12px;
    background:linear-gradient(135deg,#ff3fb4,#3867ff);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:22px;
    font-weight:bold;
}

.brand-icon.big{
    width:75px;
    height:75px;
    font-size:38px;
    margin:auto;
}

.brand-box h4{
    margin:0;
    font-size:20px;
}

.brand-box small{
    color:#cbd5e1;
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#dbeafe;
    text-decoration:none;
    padding:13px 14px;
    border-radius:12px;
    margin-bottom:7px;
    font-size:15px;
}

.sidebar a:hover,
.sidebar a.active{
    background:linear-gradient(135deg,#3867ff,#ff3fb4);
    color:#fff;
}

.sidebar a i{
    width:18px;
}

/* MAIN */
.main-content{
    margin-left:260px;
    width:calc(100% - 260px);
}

.topbar{
    height:72px;
    background:#fff;
    border-bottom:1px solid #edf0f7;
    padding:0 28px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.topbar h3{
    margin:0;
    font-size:24px;
}

.page-title-icon{
    color:#613bff;
    font-size:22px;
}

.menu-btn{
    display:none;
    border:none;
    background:linear-gradient(135deg,#3867ff,#ff3fb4);
    color:#fff;
    width:42px;
    height:42px;
    border-radius:12px;
}

.top-actions{
    display:flex;
    align-items:center;
    gap:18px;
}

.theme-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#eee9ff;
    color:#5635ff;
    font-size:18px;
}

.top-icon{
    color:#475467;
}

.admin-profile{
    display:flex;
    flex-direction:column;
    font-size:13px;
}

.admin-profile small{
    color:#667085;
}

/* SETTINGS */
.settings-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:28px;
    padding:0 28px 28px;
}

.settings-menu{
    background:#fff;
    border:1px solid #edf0f7;
    border-radius:18px;
    padding:18px;
    height:max-content;
}

.settings-menu h5{
    font-size:17px;
    margin-bottom:18px;
}

.settings-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 12px;
    color:#344054;
    text-decoration:none;
    border-radius:12px;
    margin-bottom:8px;
    cursor:pointer;
}

.settings-menu a.active,
.settings-menu a:hover{
    background:linear-gradient(90deg,rgba(56,103,255,.12),rgba(255,63,180,.12));
    color:#5635ff;
    border-right:4px solid #5635ff;
}

.settings-card{
    background:#fff;
    border:1px solid #edf0f7;
    border-radius:18px;
    padding:28px;
}

.settings-header h4{
    margin:0;
    font-size:24px;
}

.settings-header p{
    color:#667085;
    margin-bottom:28px;
}

label{
    font-size:13px;
    font-weight:600;
    color:#344054;
    margin-bottom:8px;
}

.form-control,
.form-select{
    height:48px;
    border-radius:10px;
    border:1px solid #d9e1ef;
    font-size:14px;
}

textarea.form-control{
    height:auto;
}

.form-control:focus,
.form-select:focus{
    border-color:#ff3fb4;
    box-shadow:0 0 0 .2rem rgba(255,63,180,.13);
}

.logo-upload-box{
    border:2px dashed #a78bfa;
    border-radius:16px;
    padding:28px;
    text-align:center;
    min-height:310px;
}

.logo-demo h3{
    margin-top:18px;
    margin-bottom:0;
    font-weight:800;
}

.logo-demo p{
    font-size:20px;
    font-weight:600;
}

.logo-preview{
    max-width:160px;
    max-height:160px;
    object-fit:contain;
    margin-bottom:25px;
}

.choose-file{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid #d9e1ef;
    padding:12px 35px;
    border-radius:10px;
    color:#5635ff;
    cursor:pointer;
    margin-top:20px;
}

.choose-file input{
    display:none;
}

.logo-upload-box small{
    display:block;
    color:#667085;
    margin-top:15px;
}

.btn-gradient{
    background:linear-gradient(135deg,#ff3fb4,#3867ff);
    color:#fff;
    border:none;
    padding:12px 28px;
    border-radius:12px;
    font-weight:700;
}

.btn-gradient:hover{
    color:#fff;
    opacity:.9;
}

/* DARK MODE */
body.dark-mode{
    background:#0b1224;
    color:#fff;
}

body.dark-mode .topbar,
body.dark-mode .settings-menu,
body.dark-mode .settings-card{
    background:#111b31;
    border-color:#26344f;
}

body.dark-mode .topbar h3,
body.dark-mode .settings-header h4,
body.dark-mode .settings-menu h5,
body.dark-mode label{
    color:#fff;
}

body.dark-mode .settings-header p,
body.dark-mode .admin-profile small,
body.dark-mode .logo-upload-box small{
    color:#aab5c8;
}

body.dark-mode .settings-menu a{
    color:#dbeafe;
}

body.dark-mode .settings-menu a.active,
body.dark-mode .settings-menu a:hover{
    background:linear-gradient(90deg,rgba(56,103,255,.25),rgba(255,63,180,.25));
    color:#ff7ad5;
    border-right-color:#ff3fb4;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea{
    background:#0b1224;
    color:#fff;
    border-color:#334155;
}

body.dark-mode .form-control::placeholder{
    color:#94a3b8;
}

body.dark-mode .theme-btn{
    background:linear-gradient(135deg,#ff3fb4,#3867ff);
    color:#fff;
}

body.dark-mode .top-icon{
    color:#dbeafe;
}

body.dark-mode .logo-upload-box{
    border-color:#ff3fb4;
}

body.dark-mode .choose-file{
    border-color:#334155;
    color:#ff7ad5;
}

/* MOBILE */
.sidebar-overlay{
    display:none;
}

@media(max-width:991px){
    .sidebar{
        left:-270px;
        transition:.3s;
    }

    .sidebar.show{
        left:0;
    }

    .sidebar-overlay.show{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.6);
        z-index:999;
    }

    .main-content{
        margin-left:0;
        width:100%;
    }

    .menu-btn{
        display:block;
    }

    .settings-layout{
        grid-template-columns:1fr;
        padding:0 15px 20px;
    }

    .topbar{
        padding:0 15px;
    }
}

@media(max-width:576px){
    .topbar{
        height:auto;
        padding:15px;
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .top-actions{
        width:100%;
        justify-content:space-between;
    }

    .settings-card{
        padding:18px;
    }

    .settings-menu{
        overflow-x:auto;
    }

    .btn-gradient{
        width:100%;
    }
}
.tab-content-box{
    display:none;
}

.tab-content-box.active{
    display:block;
}

.setting-switch{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8f9ff;
    border:1px solid #edf0f7;
    border-radius:14px;
    padding:16px 20px;
    margin-bottom:14px;
    font-weight:600;
}

.setting-switch input{
    width:20px;
    height:20px;
}

.permission-table{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
}

.permission-table th{
    background:#f3f4ff;
    color:#344054;
}

.permission-table td,
.permission-table th{
    padding:15px;
    vertical-align:middle;
}

body.dark-mode .setting-switch{
    background:#0b1224;
    border-color:#334155;
}

body.dark-mode .permission-table,
body.dark-mode .permission-table td{
    background:#111b31;
    color:#fff;
}

body.dark-mode .permission-table th{
    background:#0b1224;
    color:#fff;
}
.brand-logo{
    width:46px;
    height:46px;
    border-radius:12px;
    object-fit:cover;
    background:#fff;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.page-title-box{
    display:flex;
    align-items:center;
    gap:12px;
}

.mobile-logo-box{
    display:none;
}

.mobile-logo{
    width:42px;
    height:42px;
    border-radius:12px;
    object-fit:cover;
    background:#fff;
}

.mobile-brand-icon{
    width:42px;
    height:42px;
    font-size:20px;
}

.admin-profile{
    display:flex;
    align-items:center;
    gap:10px;
}

.admin-avatar{
    width:38px;
    height:38px;
    border-radius:50%;
    background:linear-gradient(135deg,#ff3fb4,#3867ff);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.admin-profile div:last-child{
    display:flex;
    flex-direction:column;
    line-height:1.2;
}

@media(max-width:991px){

    .topbar{
        height:auto;
        padding:14px 15px;
        flex-direction:row;
        align-items:center;
    }

    .mobile-logo-box{
        display:block;
    }

    .page-title-box{
        display:none;
    }

    .top-actions{
        margin-left:auto;
        gap:10px;
    }

    .admin-profile{
        order:1;
    }

    .theme-btn{
        order:2;
    }

    .top-icon{
        order:3;
    }

    .menu-btn{
        order:0;
    }
}

@media(max-width:576px){

    .topbar{
        justify-content:space-between;
    }

    .topbar-left{
        gap:10px;
    }

    .admin-profile div:last-child{
        display:none;
    }

    .admin-avatar{
        width:36px;
        height:36px;
    }

    .theme-btn{
        width:38px;
        height:38px;
    }

    .top-icon{
        font-size:16px;
    }
}

/* dash board */

.dashboard-content{
    padding:0 25px 30px;
}

.welcome-box{
    background:linear-gradient(135deg,#ff4fa3,#3b82f6);
    border-radius:22px;
    padding:28px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 15px 40px rgba(59,130,246,.25);
}

.welcome-box h2{
    margin:0;
    font-size:28px;
    font-weight:800;
}

.welcome-box p{
    margin:8px 0 0;
    opacity:.9;
}

.welcome-icon{
    width:80px;
    height:80px;
    border-radius:22px;
    background:rgba(255,255,255,.2);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:38px;
}

.dash-card{
    background:#fff;
    border-radius:20px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.dash-card h3{
    margin:0;
    font-size:30px;
    font-weight:800;
    color:#111827;
}

.dash-card p{
    margin:4px 0 0;
    color:#6b7280;
}

.dash-icon{
    width:58px;
    height:58px;
    border-radius:18px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
}

.bg-pink{background:linear-gradient(135deg,#ff4fa3,#ec4899);}
.bg-blue{background:linear-gradient(135deg,#3b82f6,#2563eb);}
.bg-green{background:linear-gradient(135deg,#22c55e,#16a34a);}
.bg-orange{background:linear-gradient(135deg,#f97316,#ea580c);}

.panel-card{
    background:#fff;
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.panel-header{
    margin-bottom:20px;
}

.panel-header h4{
    margin:0;
    font-weight:800;
    color:#111827;
}

.quick-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.quick-box{
    background:#f8fafc;
    border-radius:18px;
    padding:22px 15px;
    text-align:center;
    color:#111827;
    text-decoration:none;
    transition:.3s;
}

.quick-box:hover{
    transform:translateY(-4px);
    background:linear-gradient(135deg,#ff4fa3,#3b82f6);
    color:#fff;
}

.quick-box i{
    display:block;
    font-size:28px;
    margin-bottom:10px;
}

.quick-box span{
    font-weight:700;
}

.summary-list div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 0;
    border-bottom:1px solid #e5e7eb;
}

.summary-list div:last-child{
    border-bottom:0;
}

.summary-list span{
    color:#6b7280;
}

.summary-list b{
    color:#111827;
    font-size:18px;
}

.dark-mode .dash-card,
.dark-mode .panel-card{
    background:#111827;
}

.dark-mode .dash-card h3,
.dark-mode .panel-header h4,
.dark-mode .summary-list b,
.dark-mode .quick-box{
    color:#fff;
}

.dark-mode .dash-card p,
.dark-mode .summary-list span{
    color:#9ca3af;
}

.dark-mode .quick-box{
    background:#1f2937;
}

.dark-mode .summary-list div{
    border-color:#374151;
}

@media(max-width:768px){
    .dashboard-content{
        padding:0 15px 25px;
    }

    .welcome-box{
        padding:22px;
    }

    .welcome-box h2{
        font-size:22px;
    }

    .welcome-icon{
        display:none;
    }

    .quick-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:480px){
    .quick-grid{
        grid-template-columns:1fr;
    }
}

/* Login Page */
.login-page{
    min-height:100vh;
    background:linear-gradient(135deg,#eef2ff,#fdf2f8);
    font-family:Arial, sans-serif;
    color:#111827;
}

.theme-toggle-login{
    position:fixed;
    top:20px;
    right:20px;
    z-index:10;
}

.theme-toggle-login button{
    border:none;
    background:#fff;
    color:#111827;
    padding:10px 16px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(15,23,42,.12);
    font-weight:600;
}

.login-wrapper{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:25px;
}

.login-card{
    width:100%;
    max-width:1050px;
    min-height:600px;
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    display:flex;
    box-shadow:0 25px 70px rgba(15,23,42,.18);
}

.login-left{
    width:52%;
    padding:55px;
    background:
        radial-gradient(circle at top left,rgba(255,78,205,.35),transparent 35%),
        linear-gradient(135deg,#0f172a,#1e1b4b);
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.brand-login{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:45px;
}

.brand-login h2{
    margin:0;
    font-size:26px;
}

.brand-login p{
    margin:0;
    color:#cbd5e1;
}

.brand-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    background:linear-gradient(135deg,#ff4ecd,#3b82f6);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:25px;
    font-weight:bold;
    color:#fff;
}

.login-left h1{
    font-size:42px;
    line-height:1.2;
    margin-bottom:30px;
}

.login-left ul{
    list-style:none;
    padding:0;
    margin:0;
}

.login-left ul li{
    padding:12px 0;
    font-size:17px;
    color:#e0e7ff;
}

.login-left ul li:before{
    content:"?";
    background:linear-gradient(135deg,#ff4ecd,#3b82f6);
    color:#fff;
    padding:4px 8px;
    border-radius:50%;
    margin-right:10px;
}

.login-right{
    width:48%;
    padding:65px 55px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.login-right h3{
    font-size:32px;
    font-weight:700;
    margin-bottom:8px;
}

.login-subtitle{
    color:#64748b;
    margin-bottom:30px;
}

.form-label{
    font-weight:600;
    color:#334155;
}

.form-control,
.form-select{
    height:50px;
    border-radius:14px;
    border:1px solid #dbe3ef;
}

.form-control:focus,
.form-select:focus{
    border-color:#ff4ecd;
    box-shadow:0 0 0 .2rem rgba(255,78,205,.15);
}

.btn-gradient{
    background:linear-gradient(135deg,#ff4ecd,#3b82f6);
    border:none;
    color:#fff;
    height:50px;
    border-radius:14px;
    font-weight:700;
}

.btn-gradient:hover{
    color:#fff;
    opacity:.9;
}

.demo-text{
    margin-top:25px;
    color:#64748b;
    text-align:center;
    font-size:14px;
}

/* Dark Mode Login */
body.dark-mode.login-page{
    background:linear-gradient(135deg,#020617,#111827);
    color:#e5e7eb;
}

body.dark-mode .login-card{
    background:#111827;
}

body.dark-mode .login-right{
    background:#111827;
    color:#e5e7eb;
}

body.dark-mode .login-subtitle,
body.dark-mode .demo-text{
    color:#94a3b8;
}

body.dark-mode .form-label{
    color:#f8fafc;
}

body.dark-mode .form-control,
body.dark-mode .form-select{
    background:#020617;
    color:#fff;
    border-color:#334155;
}

body.dark-mode .form-control::placeholder{
    color:#94a3b8;
}

body.dark-mode .theme-toggle-login button{
    background:#1e293b;
    color:#fff;
}

/* Mobile Login */
@media(max-width:900px){
    .login-card{
        flex-direction:column;
        max-width:500px;
    }

    .login-left,
    .login-right{
        width:100%;
        padding:35px;
    }

    .login-left h1{
        font-size:30px;
    }
}

@media(max-width:480px){
    .login-wrapper{
        padding:15px;
    }

    .login-left,
    .login-right{
        padding:28px 22px;
    }

    .theme-toggle-login{
        top:12px;
        right:12px;
    }
}

/* customer page */

.page-content{
    padding:25px;
}

.content-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px;
}

.content-header h3{
    margin:0;
    font-size:20px;
    font-weight:800;
    color:#111827;
}

.search-box{
    width:300px;
    height:42px;
    background:#fff;
    border:1px solid #edf0f6;
    border-radius:6px;
    display:flex;
    align-items:center;
    padding:0 14px;
    margin-bottom:18px;
}

.search-box i{
    color:#9ca3af;
    margin-right:10px;
}

.search-box input{
    border:0;
    outline:0;
    width:100%;
    font-size:13px;
    background:transparent;
}

.table-card{
    background:#fff;
    border-radius:10px;
    border:1px solid #edf0f6;
    padding:10px;
}

.customer-table{
    margin:0;
    font-size:13px;
}

.customer-table thead th{
    color:#111827;
    font-size:12px;
    font-weight:800;
    border-bottom:1px solid #edf0f6;
    padding:14px;
}

.customer-table tbody td{
    padding:15px 14px;
    color:#374151;
    border-bottom:1px solid #f1f3f8;
}

.action-btn{
    color:#111827;
    text-decoration:none;
}

.btn-gradient{
    background:linear-gradient(135deg,#6d35ff,#8b5cf6);
    color:#fff;
    border:0;
    border-radius:7px;
    padding:10px 16px;
    font-size:13px;
    font-weight:700;
}

.btn-gradient:hover{
    color:#fff;
}

.dark-mode .page-content{
    background:#0f172a;
}

.dark-mode .content-header h3{
    color:#fff;
}

.dark-mode .search-box,
.dark-mode .table-card{
    background:#111827;
    border-color:#1f2937;
}

.dark-mode .search-box input{
    color:#fff;
}

.dark-mode .customer-table thead th{
    color:#fff;
    border-color:#374151;
}

.dark-mode .customer-table tbody td{
    color:#d1d5db;
    border-color:#1f2937;
}

.dark-mode .action-btn{
    color:#fff;
}

@media(max-width:768px){
    .page-content{
        padding:15px;
    }

    .content-header{
        gap:12px;
    }

    .search-box{
        width:100%;
    }
}
.dark-mode .modal-content{
    background:#111827;
    color:#fff;
}

.dark-mode .modal-header,
.dark-mode .modal-footer{
    border-color:#374151;
}

.dark-mode .form-control,
.dark-mode .form-select{
    background:#1f2937;
    border:1px solid #374151;
    color:#fff;
}
.dark-mode table,
.dark-mode .table{
    color:#e5e7eb !important;
}

.dark-mode .table-card{
    background:#111827 !important;
    border-color:#374151 !important;
}

.dark-mode .customer-table thead th{
    background:#1f2937 !important;
    color:#ffffff !important;
    border-color:#374151 !important;
}

.dark-mode .customer-table tbody tr{
    background:#111827 !important;
}

.dark-mode .customer-table tbody td{
    background:#111827 !important;
    color:#d1d5db !important;
    border-color:#374151 !important;
}

.dark-mode .customer-table tbody tr:hover td{
    background:#1f2937 !important;
}

.dark-mode .customer-table small{
    color:#9ca3af !important;
}
/*Products*/

.product-img{
    width:34px;
    height:44px;
    object-fit:cover;
    border-radius:6px;
    border:1px solid #edf0f6;
}

.no-img{
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    color:#9ca3af;
}

.dark-mode .product-img{
    border-color:#374151;
}

.dark-mode .no-img{
    background:#1f2937;
    color:#9ca3af;
}

.dark-mode .modal-content{
    background:#111827;
    color:#fff;
}

.dark-mode .modal-header,
.dark-mode .modal-footer{
    border-color:#374151;
}

.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode textarea{
    background:#1f2937 !important;
    border-color:#374151 !important;
    color:#fff !important;
}