*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --bg:#1a1a1a;
    --surface:#2c2c2c;
    --surface-light:#3a3a3a;
    --card:#444;
    --text:#ffffff;
    --muted:#bcbcbc;
    --accent:#00D329;
    --accent-hover:#00b322;
    --danger:#ff4d4d;
    --danger-hover:#e63939;
    --border:#555;
}

body{
    font-family:Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    background:var(--surface);
    padding:15px 24px;

    border-bottom:1px solid #3d3d3d;

    position:sticky;
    top:0;
    z-index:1000;
}

.logo img{
    object-fit:contain;
}

.navitems{
    display:flex;
    align-items:center;
    gap:24px;
}

.navitems a{
    color:white;
    text-decoration:none;
    font-size:15px;
    transition:0.2s ease;
    position:relative;
}

.navitems a:hover{
    color:var(--accent);
}

.navitems .settings{
    color:var(--accent);
}

.navitems .settings::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;

    width:100%;
    height:2px;

    background:var(--accent);
    border-radius:20px;
}

.search-wrapper{
    position:relative;
    width:250px;
}

.search-wrapper input{
    width:100%;
    padding:10px 12px 10px 42px;

    background:#444;
    border:1px solid transparent;
    border-radius:8px;

    color:white;
    outline:none;

    transition:0.2s ease;
}

.search-wrapper input:focus{
    border-color:var(--accent);
}

.search-wrapper .icon{
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
}

.search-wrapper svg{
    fill:#bdbdbd;
}

.settings-page{
    max-width:1200px;
    margin:auto;
    padding:40px 20px 60px;
}

.page-header{
    margin-bottom:35px;
}

.page-header h1{
    font-size:38px;
    margin-bottom:10px;
}

.page-header p{
    color:var(--muted);
    font-size:15px;
}

.settings-grid{
    display:grid;
    grid-template-columns:300px 1fr;
    gap:24px;
}

.sidebar{
    background:var(--surface);
    border-radius:16px;
    padding:20px;
    height:fit-content;
    border:1px solid #383838;
}

.profile-box{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:30px;
}

.avatar{
    width:60px;
    height:60px;
    border-radius:50%;
    background:linear-gradient(135deg,#00D329,#008f1b);

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;
    font-weight:bold;
}

.profile-box h3{
    margin-bottom:4px;
}

.profile-box p{
    color:var(--muted);
    font-size:13px;
}

.sidebar-links{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.sidebar-links a{
    text-decoration:none;
    color:white;

    padding:12px 14px;
    border-radius:10px;

    transition:0.2s ease;
}

.sidebar-links a:hover{
    background:var(--card);
}

.sidebar-links .active{
    background:var(--accent);
    color:white;
    font-weight:bold;
}

.content{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.section{
    background:var(--surface);
    border-radius:16px;
    padding:24px;

    border:1px solid #383838;
}

.section-header{
    margin-bottom:22px;
}

.section-header h2{
    font-size:24px;
    margin-bottom:8px;
}

.section-header p{
    color:var(--muted);
    font-size:14px;
}

.settings-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    padding:18px 0;
    border-bottom:1px solid #3c3c3c;
}

.settings-row:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.settings-info h3{
    margin-bottom:6px;
    font-size:17px;
}

.settings-info p{
    color:var(--muted);
    font-size:14px;
}

.btn-group{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

button{
    border:none;
    cursor:pointer;
    transition:0.2s ease;
    font-weight:bold;
}

.btn{
    background:var(--card);
    color:white;

    padding:12px 18px;
    border-radius:10px;
}

.btn:hover{
    background:#575757;
}

.btn-primary{
    background:var(--accent);
    color:white;
}

.btn-primary:hover{
    background:var(--accent-hover);
}

.btn-danger{
    background:var(--danger);
    color:white;
}

.btn-danger:hover{
    background:var(--danger-hover);
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.input-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.input-group.full{
    grid-column:1 / -1;
}

label{
    font-size:14px;
    color:#d8d8d8;
}

input{
    background:var(--card);
    border:1px solid transparent;
    color:white;

    padding:13px 14px;
    border-radius:10px;
    outline:none;

    transition:0.2s ease;
}

input:focus{
    border-color:var(--accent);
}

.switch{
    position:relative;
    display:inline-block;
    width:58px;
    height:30px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
}

.slider{
    position:absolute;
    cursor:pointer;
    inset:0;

    background:#666;
    transition:.3s;
    border-radius:50px;
}

.slider:before{
    position:absolute;
    content:"";

    height:22px;
    width:22px;

    left:4px;
    bottom:4px;

    background:white;
    transition:.3s;
    border-radius:50%;
}

.switch input:checked + .slider{
    background:var(--accent);
}

.switch input:checked + .slider:before{
    transform:translateX(28px);
}

footer{
    margin-top:50px;
    padding:25px;
    text-align:center;
    color:#9f9f9f;
    border-top:1px solid #2d2d2d;
}

footer a{
    color:#bdbdbd;
    text-decoration:none;
    margin:0 10px;
}

footer a:hover{
    color:var(--accent);
}

@media(max-width:900px){

    .settings-grid{
        grid-template-columns:1fr;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .navbar{
        flex-wrap:wrap;
    }

    .search-wrapper{
        width:100%;
    }
}

@media(max-width:600px){

    .page-header h1{
        font-size:30px;
    }

    .settings-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .btn-group{
        width:100%;
    }

    .btn-group button{
        flex:1;
    }
}