:root{

    --background:#F5F7FB;

    --sidebar:#0D1B3D;
    --sidebar-light:#162C5F;

    --primary:#3B82F6;
    --primary-light:#60A5FA;

    --success:#22C55E;
    --danger:#EF4444;

    --text:#111827;
    --text-light:#64748B;

}

/* ===================================== */
/* RESET */
/* ===================================== */

*{

    margin:0;
    padding:0;

    box-sizing:border-box;

    font-family:'Inter',sans-serif;

}

body{

    min-height:100vh;

    display:flex;

    background:

    radial-gradient(
        circle at top right,
        rgba(59,130,246,.08),
        transparent 30%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(96,165,250,.05),
        transparent 25%
    ),

    var(--background);

}

/* ===================================== */
/* SIDEBAR */
/* ===================================== */

.sidebar{

    width:270px;

    position:fixed;

    top:0;
    left:0;
    bottom:0;

    padding:30px 20px;

    background:

    linear-gradient(
        180deg,
        var(--sidebar),
        var(--sidebar-light)
    );

    color:white;

    box-shadow:
    0 20px 40px rgba(0,0,0,.25);

}

.logo{

    font-size:24px;

    font-weight:800;

    margin-bottom:40px;

}

.sidebar nav{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.sidebar nav a{

    text-decoration:none;

    color:white;

    padding:14px 18px;

    border-radius:16px;

    transition:.25s;

}

.sidebar nav a:hover{

    background:
    rgba(255,255,255,.08);

}

.sidebar nav a.active{

    background:var(--primary);

}

/* ===================================== */
/* MAIN */
/* ===================================== */

.main-content{

    flex:1;

    margin-left:270px;

    padding:35px;

}

/* ===================================== */
/* HEADER */
/* ===================================== */

.page-header{

    margin-bottom:30px;

}

.page-header h1{

    font-size:38px;

    font-weight:800;

    color:var(--text);

}

.page-header p{

    margin-top:8px;

    color:var(--text-light);

}

/* ===================================== */
/* GRID */
/* ===================================== */

.settings-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(420px,1fr));

    gap:25px;

}

/* ===================================== */
/* CARD */
/* ===================================== */

.settings-card{

    position:relative;

    overflow:hidden;

    background:white;

    border-radius:32px;

    padding:30px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

    transition:.25s;

}

.settings-card:hover{

    transform:translateY(-4px);

}

.settings-card::before{

    content:"";

    position:absolute;

    top:-60px;
    right:-60px;

    width:150px;
    height:150px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(59,130,246,.08),
        transparent
    );

}

.settings-card h3{

    position:relative;

    z-index:2;

    font-size:24px;

    font-weight:800;

    margin-bottom:25px;

    color:var(--text);

}

/* ===================================== */
/* BUTTONS */
/* ===================================== */

.settings-card button{

    width:100%;

    height:65px;

    border:none;

    border-radius:20px;

    cursor:pointer;

    font-size:16px;

    font-weight:700;

    transition:.25s;

}

#exportBtn{

    color:white;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

}

#exportBtn:hover{

    transform:translateY(-2px);

}

#resetBtn{

    color:white;

    background:

    linear-gradient(
        135deg,
        #EF4444,
        #F87171
    );

}

#resetBtn:hover{

    transform:translateY(-2px);

}

/* ===================================== */
/* FILE INPUT */
/* ===================================== */

#importFile{

    width:100%;

    padding:18px;

    border:none;

    border-radius:18px;

    background:#F8FAFC;

    font-size:15px;

    font-weight:600;

}

/* ===================================== */
/* INFO */
/* ===================================== */

.info-line{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

    border-bottom:

    1px solid #EEF2F7;

}

.info-line:last-child{

    border-bottom:none;

}

.info-line span{

    color:var(--text-light);

    font-weight:500;

}

.info-line strong{

    color:var(--text);

    font-weight:800;

}

/* ===================================== */
/* DANGER */
/* ===================================== */

.danger-card{

    border:

    2px solid rgba(
        239,
        68,
        68,
        .15
    );

}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:1200px){

    .settings-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .sidebar{

        width:90px;

    }

    .main-content{

        margin-left:90px;

        padding:20px;

    }

    .logo{

        font-size:14px;

    }

.category-form{

    display:flex;

    gap:12px;

    margin-bottom:20px;

}

.category-form input{

    flex:1;

    height:55px;

    border:none;

    border-radius:16px;

    background:#F8FAFC;

    padding:0 15px;

    font-size:15px;

    font-weight:600;

}

.category-form button{

    width:140px;

}

.categories-list{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.category-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 22px;

    background:white;

    border-radius:20px;

    border:1px solid #EEF2F7;

    box-shadow:
    0 10px 25px rgba(
        15,
        23,
        42,
        .05
    );

    transition:.25s;

}

.category-item:hover{

    transform:
    translateY(-2px);

}
.category-item span{

    font-weight:600;

}

.category-delete{

    border:none;

    background:#FEE2E2;

    color:#B91C1C;

    padding:8px 12px;

    border-radius:10px;

    cursor:pointer;

    font-weight:700;

}

    .sidebar nav a{

        text-align:center;

        font-size:11px;

    }

}

/* ===================================== */
/* FORMULAIRE CATEGORIES PREMIUM */
/* ===================================== */

.category-form{

    display:flex;

    gap:15px;

    margin-bottom:25px;

}

.category-form input{

    flex:1;

    height:65px;

    border:none;

    border-radius:20px;

    background:#F8FAFC;

    padding:0 22px;

    font-size:15px;

    font-weight:600;

    color:var(--text);

    box-shadow:
    inset 0 0 0 2px transparent;

    transition:.25s;

}

.category-form input:focus{

    outline:none;

    background:white;

    box-shadow:
    0 0 0 4px rgba(59,130,246,.12);

}

#addCategoryBtn{

    width:180px;

    border:none;

    border-radius:20px;

    cursor:pointer;

    color:white;

    font-size:15px;

    font-weight:700;

    background:

    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

    box-shadow:
    0 10px 25px rgba(
        59,
        130,
        246,
        .25
    );

    transition:.25s;

}

#addCategoryBtn:hover{

    transform:
    translateY(-2px);

    box-shadow:
    0 15px 30px rgba(
        59,
        130,
        246,
        .35
    );

}

#addCategoryBtn::before{

    content:"+ ";

    font-size:18px;

}

.category-name{

    font-size:16px;

    font-weight:700;

    color:var(--text);

}

.category-actions{

    display:flex;

    gap:10px;

}

.category-edit{

    width:42px;

    height:42px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    background:#DBEAFE;

    color:#1D4ED8;

    font-size:18px;

    transition:.25s;

}

.category-edit:hover{

    transform:scale(1.05);

}

.category-delete{

    width:42px;

    height:42px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    background:#FEE2E2;

    color:#B91C1C;

    font-size:18px;

    transition:.25s;

}

.category-delete:hover{

    transform:scale(1.05);

}

.empty-category{

    text-align:center;

    padding:40px;

    border-radius:24px;

    background:#F8FAFC;

    border:2px dashed #D6E3F5;

}

.empty-category h3{

    margin-bottom:10px;

    color:var(--text);

}

.empty-category p{

    color:var(--text-light);

}

.category-nav{

    width:100%;

    height:55px;

    border:none;

    border-radius:18px;

    margin:8px 0;

    cursor:pointer;

    font-size:24px;

    font-weight:800;

    color:white;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

    box-shadow:
    0 10px 25px rgba(
        59,
        130,
        246,
        .25
    );

    transition:.25s;

}

.category-nav:hover{

    transform:
    translateY(-2px);

}

.toggle-categories{

    width:100%;

    height:60px;

    border:none;

    border-radius:18px;

    margin-bottom:20px;

    cursor:pointer;

    font-size:15px;

    font-weight:700;

    color:white;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

    box-shadow:
    0 10px 25px rgba(
        59,
        130,
        246,
        .25
    );

    transition:.25s;

}

.toggle-categories:hover{

    transform:
    translateY(-2px);

}

.custom-file-upload{

    display:flex;

    align-items:center;

    gap:15px;

    padding:20px;

    border-radius:20px;

    background:#F8FAFC;

}

.custom-file-upload input{

    display:none;

}

.file-upload-btn{

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:180px;

    height:55px;

    border-radius:16px;

    cursor:pointer;

    color:white;

    font-weight:700;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

    box-shadow:
    0 10px 25px rgba(
        59,
        130,
        246,
        .25
    );

    transition:.25s;

}

.file-upload-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 15px 30px rgba(
        59,
        130,
        246,
        .35
    );

}

#fileName{

    font-size:14px;

    font-weight:600;

    color:#64748B;

}

#importFile{

    display:none !important;

}