:root {
    --primary-purple: #7B2FF7;
    --secondary-purple: #A64DFF;
    --dark-purple: #5B21B6;
    --purple-gradient: linear-gradient(90deg, #7B2FF7 0%, #A64DFF 100%);
    --text-dark: #111827;
    --text-secondary: #6B7280;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;
    --border-gray: #E5E7EB;
    --yellow-accent: #FFC107;
    --success-green: #22C55E;
    --light-purple-bg: #F3E8FF;
    --footer-bg: #111111;
    --soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Dashboard Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f8f9fa;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.sidebar-header h2 {
    color: #7B2FF7;
    font-size: 22px;
    margin: 0;
    font-weight: 700;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    padding: 5px 20px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background: #f0e6ff;
    color: #7B2FF7;
}

.sidebar-nav li.logout {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 12px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.header-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Form Container within Sidebar Layout */
.main-content .admin-container-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.admin-header {
    padding: 0 0 15px 0 !important;
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-header h2, 
    .sidebar-nav li a span {
        display: none;
    }
    .sidebar-nav li a {
        justify-content: center;
        padding: 12px 0;
    }
    .sidebar-nav li a i {
        font-size: 20px;
        margin: 0;
    }
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}

/* Form Elements and Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    color: var(--primary-purple);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1.5px solid var(--border-gray);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-purple);
}

.form-group textarea {
    resize: vertical;
}

/* Toggle Switch Styling */
.toggle-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-purple);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-purple);
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Highlight Section */
.highlight-section {
    background-color: var(--light-purple-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px dashed var(--primary-purple);
}

.highlight-section .section-title {
    color: var(--dark-purple);
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 60px;
}

.login-box h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 24px;
}

.login-box p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.login-box .form-group input {
    padding: 14px 18px;
    border: 2px solid var(--border-gray);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9fb;
}

.login-box .form-group input:focus {
    border-color: var(--primary-purple);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.1);
}

.login-btn {
    width: 100%;
    margin-top: 15px;
    height: 54px;
    font-size: 16px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-end;
}

.form-actions .btn {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Media Previews */
.image-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid #7B2FF7;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-preview.show-preview {
    display: block !important;
}

.gallery-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.gallery-preview .image-preview {
    margin-top: 0;
}
