:root {
    --primary-bg: #F3E0D3;
    --dark-bg: #1F1F1F;
    --accent-color: #DFA878;
    --card-bg: #EACFB6;
    --text-dark: #1F1F1F;
    --text-light: #F3E0D3;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* --- Sidebar --- */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--dark-bg);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    text-align: center;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1rem;
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: var(--accent-color);
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-color);
}

#sidebar ul li a i {
    width: 20px;
    text-align: center;
}

/* --- Content --- */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.admin-navbar {
    padding: 15px;
    background: #fff;
    border: none;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-toggle {
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Settings Styles --- */
.settings-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.card-header-custom {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.card-title {
    font-weight: 700;
    color: var(--dark-bg);
    margin: 0;
}

.profile-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 10px 15px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.btn-save {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-save:hover {
    background-color: var(--dark-bg);
    color: white;
}

/* Toggle Switch */
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.brand-logo {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    #sidebar { margin-left: -250px; }
    #sidebar.active { margin-left: 0; }
}
