/* ==========================================
   RESET
========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
}


/* ==========================================
   SIDEBAR
========================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #111;
    border-right: 1px solid #222;
    padding: 30px 20px;
    z-index: 1000;
    overflow-y: auto;
    transition: .35s;
}


/* ==========================================
   LOGO
========================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
}

.logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #0B5ED7;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid #D4AF37;
}

.logo-text h2 {
    color: #fff;
    font-size: 18px;
}

.logo-text p {
    color: #D4AF37;
    font-size: 12px;
    margin-top: 3px;
}


/* ==========================================
   SIDEBAR MENU
========================================== */

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #ddd;
    transition: .3s;
}

.sidebar-menu li a i {
    width: 22px;
    text-align: center;
}

.sidebar-menu li:hover a,
.sidebar-menu li.active a {
    background: #0B5ED7;
    color: #fff;
}

.sidebar-menu li:hover a i,
.sidebar-menu li.active a i {
    color: #D4AF37;
}


/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: #0B5ED7;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 2000;
}


/* ==========================================
   MAIN CONTENT
========================================== */

.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    padding: 60px 50px;
}


/* ==========================================
   PAGE HEADER
========================================== */

.settings-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.settings-header span {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    background: #0B5ED7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.settings-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.settings-header p {
    color: #aaa;
    line-height: 1.8;
}


/* ==========================================
   SETTINGS CONTAINER
========================================== */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
}


/* ==========================================
   SETTINGS CARD
========================================== */

.settings-card {
    background: #111;
    border: 1px solid #252525;
    border-radius: 18px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
}


/* ==========================================
   CARD HEADER
========================================== */

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid #292929;
}

.settings-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(11, 94, 215, .15);
    color: #0B5ED7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.settings-card-header h2 {
    font-size: 20px;
}

.settings-card-header p {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}


/* ==========================================
   PROFILE PHOTO
========================================== */

.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #191919;
    border-radius: 14px;
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0B5ED7;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.photo-info p {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 8px;
    background: #0B5ED7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.photo-btn:hover {
    background: #D4AF37;
    color: #050505;
}


/* ==========================================
   FORM GROUP
========================================== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    color: #ddd;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 9px;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #333;
    border-radius: 9px;
    outline: none;
    background: #191919;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: .3s;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    border-color: #0B5ED7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, .12);
}


/* ==========================================
   PASSWORD INPUT
========================================== */

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
    transition: .3s;
}

.toggle-password:hover {
    color: #0B5ED7;
}


/* ==========================================
   SAVE BUTTON
========================================== */

.save-btn {
    min-width: 180px;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 9px;
    background: #0B5ED7;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.save-btn:hover {
    background: #D4AF37;
    color: #050505;
}

.save-btn i {
    margin-right: 7px;
}


/* ==========================================
   SETTING OPTIONS
========================================== */

.setting-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #292929;
}

.setting-option:last-of-type {
    margin-bottom: 25px;
}

.setting-option h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.setting-option p {
    color: #888;
    font-size: 13px;
}


/* ==========================================
   TOGGLE SWITCH
========================================== */

.switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    inset: 0;
    background: #333;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 4px;
    top: 4px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}

.switch input:checked + .slider {
    background: #0B5ED7;
}

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


/* ==========================================
   DANGER ZONE
========================================== */

.danger-zone {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 25px 30px;
    border: 1px solid #512020;
    border-radius: 15px;
    background: rgba(100, 20, 20, .12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.danger-zone h2 {
    font-size: 18px;
    margin-bottom: 7px;
}

.danger-zone h2 i {
    color: #ff6b63;
    margin-right: 8px;
}

.danger-zone p {
    color: #888;
    font-size: 13px;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: #b52b2b;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .3s;
    white-space: nowrap;
}

.logout-btn:hover {
    background: #d93636;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }

    .sidebar {
        left: -280px;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 90px 25px 40px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .main-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .settings-header h1 {
        font-size: 32px;
    }

    .settings-header p {
        font-size: 13px;
    }

    .settings-card {
        padding: 25px;
    }

    .profile-photo-section {
        align-items: flex-start;
    }

    .danger-zone {
        flex-direction: column;
        align-items: flex-start;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 480px) {

    .settings-header h1 {
        font-size: 28px;
    }

    .settings-card {
        padding: 18px;
    }

    .settings-card-header h2 {
        font-size: 17px;
    }

    .settings-card-header p {
        font-size: 12px;
    }

    .profile-photo-section {
        flex-direction: column;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .setting-option {
        align-items: flex-start;
    }

    .setting-option h3 {
        font-size: 14px;
    }

    .setting-option p {
        font-size: 12px;
        line-height: 1.6;
    }

    .save-btn {
        width: 100%;
    }

}