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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #ffc107;
    --info: #17a2b8;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --border: #e0e0e0;
    --sidebar-width: 260px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Login Panel Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-panel {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.login-panel h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    background: #1a252f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-header .user-email {
    font-size: 13px;
    color: #95a5a6;
}

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

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #95a5a6;
    padding: 0 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(149, 165, 166, 0.3), transparent);
    margin: 16px 16px;
}

.nav-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    color: #ecf0f1;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: var(--primary);
    color: white;
}

.nav-item-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-item-text {
    font-size: 14px;
    font-weight: 500;
}

.nav-item-badge {
    margin-left: auto;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    display: none;
    animation: pulse 2s infinite;
}

.nav-item-badge.show {
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #2c3e50;
    flex-shrink: 0;
}

.submenu {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.submenu.hidden {
    display: none;
}

.submenu-item {
    padding: 10px 20px 10px 45px;
    font-size: 13px;
    color: #bdc3c7;
}

.submenu-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.submenu-item.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    border-left: none;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s;
}

.rotate-90 {
    transform: rotate(-90deg);
}

/* Sidebar Footer */
.logout-btn {
    width: 100%;
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    min-height: 100vh;
}

.content-header {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.content-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

small {
    display: block;
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 13px;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-row .form-group {
    flex: 1;
}

/* Buttons */
.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: #229954;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.pricing-item {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.pricing-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    border-color: #667eea;
}

.pricing-size {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.pricing-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.pricing-limit {
    font-size: 12px;
    color: #7f8c8d;
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.pricing-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pricing-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-pricing {
    flex: 1;
    background: #3498db;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-edit-pricing:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-delete-pricing {
    background: transparent;
    border: 1px solid #ddd;
    color: #95a5a6;
    padding: 4px 8px;
    font-size: 11px;
    min-width: auto;
    flex: 0 0 auto;
}

.btn-delete-pricing:hover {
    background: #fee;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Form Controls - Modern Styling */
.form-control,
select.form-control,
input.form-control,
textarea.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.2s ease;
}

select.form-control {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1 1l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control:focus,
select.form-control:focus,
input.form-control:focus,
textarea.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:disabled,
select.form-control:disabled,
input.form-control:disabled {
    background: #f8f9fa;
    color: #7f8c8d;
    cursor: not-allowed;
    border-color: #e9ecef;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

/* Loading Spinner */
.pricing-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.pricing-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Delete Confirmation Modal */
.delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.delete-confirm-modal.active {
    display: flex;
}

.delete-confirm-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.delete-confirm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.delete-confirm-icon {
    font-size: 32px;
    color: #e74c3c;
}

.delete-confirm-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}

.delete-confirm-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.delete-confirm-warning p {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.delete-confirm-warning ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
    font-size: 13px;
}

.delete-confirm-warning li {
    margin-bottom: 5px;
}

.delete-confirm-body {
    margin-bottom: 20px;
}

.delete-confirm-body p {
    color: #555;
    margin-bottom: 15px;
    font-size: 14px;
}

.delete-confirm-body strong {
    color: #e74c3c;
    font-weight: 600;
}

.delete-confirm-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.delete-confirm-input:focus {
    outline: none;
    border-color: #e74c3c;
}

.delete-confirm-input.invalid {
    border-color: #e74c3c;
    background: #fee;
}

.delete-confirm-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.delete-confirm-footer button {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.delete-confirm-cancel {
    background: #e9ecef;
    color: #495057;
}

.delete-confirm-cancel:hover {
    background: #d3d6d9;
}

.delete-confirm-delete {
    background: #e74c3c;
    color: white;
}

.delete-confirm-delete:hover:not(:disabled) {
    background: #c0392b;
}

.delete-confirm-delete:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Navigation Guard Modal */
.nav-guard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001; /* Higher than delete modal */
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-guard-modal.active {
    display: flex;
}

.nav-guard-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-guard-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.nav-guard-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.nav-guard-icon {
    font-size: 36px;
    color: #ffc107;
    line-height: 1;
}

.nav-guard-title h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
}

.nav-guard-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    padding-left: 51px; /* Align with title text */
}

.nav-guard-body {
    padding: 25px 30px;
}

.nav-guard-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.nav-guard-warning p {
    margin: 0;
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
}

.nav-guard-question {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.nav-guard-footer {
    padding: 20px 30px 30px 30px;
    display: flex;
    gap: 12px;
}

.nav-guard-footer button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-guard-btn-cancel {
    background: #27ae60;
    color: white;
}

.nav-guard-btn-cancel:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.nav-guard-btn-confirm {
    background: #e9ecef;
    color: #495057;
}

.nav-guard-btn-confirm:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Photo Pricing Options (Phase 2) - Button Style */
.pricing-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    position: relative;
    min-height: 90px;
}

.pricing-option-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(2px);
}

.pricing-option-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pricing-option-btn.selected .pricing-option-info * {
    color: #fff !important;
}

.pricing-option-check {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-option-btn.selected .pricing-option-check {
    display: flex;
}

.pricing-option-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    width: 100%;
}

.pricing-option-size {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
}

.pricing-option-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #7f8c8d;
    align-items: center;
}

.pricing-option-price {
    color: #27ae60;
    font-weight: 600;
}

.pricing-option-limit {
    color: #95a5a6;
}

/* Pricing Options Grid - 3 columns, no scrolling */
.pricing-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Adjust button for grid layout */
.pricing-options-grid .pricing-option-btn {
    margin-bottom: 0;
}

/* Upload Area */
.folder-upload {
    border: 3px dashed var(--border);
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s;
}

.folder-upload:hover {
    background: #e9ecef;
    border-color: var(--primary);
}

.folder-upload-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.folder-upload h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.folder-upload p {
    color: #7f8c8d;
}

.folder-upload input {
    display: none;
}

/* Progress Bar */
.progress-container {
    margin-top: 25px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.progress-text {
    margin-top: 12px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

/* Event/Order Cards */
.item-card {
    background: white;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-card h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 18px;
}

.item-meta {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.8;
}

.item-meta strong {
    color: #2c3e50;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease-in;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    max-width: 1200px;
    max-height: 90vh;
    width: 95%;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-light);
    color: #2c3e50;
}

/* Span-based close button (used in some modals) */
.modal-header .close,
.close {
    font-size: 28px;
    font-weight: 300;
    color: #95a5a6;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.modal-header .close:hover,
.close:hover {
    background: var(--gray-light, #ecf0f1);
    color: #e74c3c;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

/* Two-column layout for order modal */
.modal-body-columns {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    align-items: start;
}

.modal-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-right-column {
    min-height: 400px;
    width: 100%;
    flex: 1;
}

.modal-right-column .modal-section {
    width: 100%;
}

.modal-right-column .modal-section.full-width {
    width: 100%;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1024px) {
    .modal-body-columns {
        grid-template-columns: 1fr;
    }

    .modal-right-column {
        min-height: auto;
    }
}

.modal-section {
    margin-bottom: 0;
    background: white;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.modal-left-column .modal-section {
    background: var(--gray-light);
}

.modal-section h3 {
    color: #34495e;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    background: var(--gray-light);
    padding: 16px;
    border-radius: 8px;
}

.modal-section.full-width {
    grid-column: 1 / -1;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-info-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
}

.modal-info-value {
    font-size: 14px;
    color: #2c3e50;
    word-break: break-word;
}

.modal-photos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding: 4px;
    width: 100%;
}

.modal-photo-item {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.modal-photo-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.modal-photo-item.selected {
    background: #d4edda;
    border-color: #28a745;
    border-width: 3px;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(0);
}

.modal-photo-item.selected .modal-photo-thumbnail {
    border-color: #28a745;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.modal-photo-item.selected .modal-photo-name {
    color: #155724;
    font-weight: 700;
}

.modal-photo-item.selected::before {
    content: '✓';
    position: absolute;
    top: 16px;
    right: 16px;
    background: #28a745;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.5);
    z-index: 10;
    animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.modal-photo-item {
    position: relative;
}

.modal-photo-thumbnail {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.modal-photo-item:hover .modal-photo-thumbnail {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.modal-photo-item:hover .modal-photo-thumbnail img {
    transform: scale(1.05);
}

.modal-photo-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    justify-content: center;
}

.modal-photo-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-photo-category {
    color: #667eea;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 500;
}

.modal-photo-filename {
    color: #6c757d;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    background: var(--gray-light);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.modal-photo-product {
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-photo-pricing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    margin-top: auto;
}

.modal-photo-quantity {
    background: var(--gray-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
    border: 1px solid var(--border);
}

.modal-photo-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    background: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Info Box */
.info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.info-box h4 {
    color: #0056b3;
    margin-bottom: 12px;
    font-size: 16px;
}

.info-box ul {
    margin-left: 20px;
    color: #2c3e50;
    line-height: 1.8;
}

/* File List */
.file-list {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    background: var(--gray-light);
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #6c757d;
}

.file-list-item {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}

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

.btn-danger:hover {
    background: #c0392b;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 999;
        background: var(--primary);
        color: white;
        border: none;
        padding: 12px;
        border-radius: 8px;
        cursor: pointer;
    }
}

.mobile-menu-btn {
    display: none;
}
/* Restored Nav Item Styles */
.nav-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    color: #ecf0f1;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: var(--primary);
    color: white;
}

.nav-item-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-item-text {
    font-size: 14px;
    font-weight: 500;
}

.nav-item-badge {
    margin-left: auto;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    display: none;
    animation: pulse 2s infinite;
}

.nav-item-badge.show {
    display: inline-block;
}
/* Modern Checkbox Pills (Toggle Buttons) */
.collection-checkboxes {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    background: transparent !important;
    padding: 0 !important;
    max-height: none !important;
}

.collection-option {
    background: rgba(255,255,255,0.05);
    border: 1px solid #e0e0e0;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.collection-option:hover {
    background: rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

/* Hide native checkbox */
.collection-option input[type="checkbox"] {
    display: none !important;
}

/* Checked State (Active Button) */
.collection-option:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Fallback for older browsers */
.collection-option input:checked + span {
    color: white;
    font-weight: 600;
}

/* Modal Layout Fixes */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

/* App-Like Modal Layout */
#editPhotoModal {
    z-index: 5000 !important;
}

.modal-xl {
    width: 1000px !important;
    max-width: 95vw !important;
    height: 85vh;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important; 
    overflow: hidden !important; 
    background: #fff; /* Admin is light theme usually, keeping consistent */
    border-radius: 8px;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    z-index: 10;
    flex-shrink: 0;
}

/* Removed duplicate .modal-body rule - using .modal-body-columns instead */

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    flex-shrink: 0;
}

.tech-sidebar {
    height: fit-content; 
    position: sticky;
    top: 0;
}

.breadcrumb-sep {
    color: #ccc;
    font-size: 12px;
}

/* Photo Grid & Folder Nav Styles */
.photo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.folder-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.folder-card:hover {
    background: #f8f9fa;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.folder-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #f39c12;
}

.folder-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    word-break: break-word;
}

.photo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.photo-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.photo-thumb {
    width: 100%;
    height: 320px;
    object-fit: cover;
    cursor: zoom-in;
    background: #f5f5f5;
}

.photo-info {
    padding: 10px;
    border-top: 1px solid #f0f0f0;
}

.photo-name {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.photo-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.action-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.action-btn.delete:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    align-items: center;
}

.breadcrumb-item {
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    cursor: default;
    text-decoration: none;
}

.breadcrumb-sep {
    color: #ccc;
    font-size: 12px;
}

/* Bulk Management Styles (Phase 2c) */
.bulk-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bulk-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bulk-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.bulk-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.bulk-table tbody tr:hover {
    background: #f8f9ff;
}

.bulk-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.bulk-photo-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.bulk-photo-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.bulk-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bulk-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.bulk-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.bulk-filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bulk-filter-bar select, .bulk-filter-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.bulk-actions-bar {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid #667eea;
}

.bulk-actions-bar.active {
    display: block;
}

.bulk-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #667eea;
}

.bulk-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0 5px;
}

.bulk-stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.bulk-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Bulk Event Selection - REMOVED (only for folders/photos) */

/* Bulk Actions Bar Animation */
#bulkActionsBar {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}


/* Photo Selection Checkbox */
.photo-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    z-index: 10;
    transform: scale(1);
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.photo-checkbox:hover {
    transform: scale(1.2);
}

.photo-checkbox:checked {
    transform: scale(1.15);
}

/* Selected Photo Highlight */
.photo-card:has(.photo-checkbox:checked) {
    outline: 4px solid #667eea;
    outline-offset: -4px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Folder Card Delete Button */
.folder-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.folder-card:hover .folder-delete-btn {
    opacity: 1;
}

.folder-delete-btn:hover {
    background: #c0392b;
}

/* ========================================
   Product Creator Styles
   ======================================== */

.product-creator-step {
    margin-bottom: 40px;
}

.step-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.photo-upload-zone {
    background: #f8f9fa;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.photo-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.photo-upload-card {
    position: relative;
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-upload-card:hover:not(.disabled) {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.photo-upload-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.photo-upload-card.filled {
    border-color: #27ae60;
    cursor: default;
}

.photo-upload-card.add-more {
    border-style: dashed;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.upload-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.upload-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.upload-sublabel {
    font-size: 12px;
    color: #7f8c8d;
}

.photo-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.photo-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-preview:hover .photo-preview-overlay {
    opacity: 1;
}

.photo-preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.btn-delete-photo {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-delete-photo:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.upload-hint {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #1565c0;
    line-height: 1.6;
}

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

.collection-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.collection-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.collection-checkboxes label:hover {
    background: #e9ecef;
}

.collection-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Upload Progress Overlay */
.upload-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.upload-progress-content {
    text-align: center;
    width: 80%;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.upload-progress-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--success);
}

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

/* Collection Cards Hover */
.collection-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ========================================
   Sidebar Section Separation Styles
   ======================================== */

/* Base section styling with stronger separation */
.nav-section {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

/* Section headers - larger, bolder */
.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px 8px 20px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove top border from first section */
.nav-section:first-child .nav-section-title {
    border-top: none;
}

/* Business Section Headers - Colored Accent Bars */
.nav-section-title.section-events {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.3) 0%, transparent 100%);
    border-left: 3px solid #3498db;
    color: #5dade2;
}

.nav-section-title.section-boris {
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.3) 0%, transparent 100%);
    border-left: 3px solid #27ae60;
    color: #58d68d;
}

.nav-section-title.section-kb {
    background: linear-gradient(90deg, rgba(155, 89, 182, 0.3) 0%, transparent 100%);
    border-left: 3px solid #9b59b6;
    color: #c39bd3;
}

.nav-section-title.section-debug {
    background: linear-gradient(90deg, rgba(241, 196, 15, 0.2) 0%, transparent 100%);
    border-left: 3px solid #f1c40f;
    color: #f7dc6f;
}

.nav-section-title.section-journal {
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.3) 0%, transparent 100%);
    border-left: 3px solid #e67e22;
    color: #f0b27a;
}

/* Section Icon Badge - Color indicator */
.section-icon-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.section-icon-badge.badge-events { background: #3498db; }
.section-icon-badge.badge-boris { background: #27ae60; }
.section-icon-badge.badge-kb { background: #9b59b6; }
.section-icon-badge.badge-debug { background: #f1c40f; }
.section-icon-badge.badge-journal { background: #e67e22; }

/* Major Section Dividers */
.nav-section-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.15) 80%,
        transparent 100%);
    margin: 16px 16px;
}

/* Subtle background for active business section */
.nav-section.section-active {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0;
}

/* Hover effect on section headers */
.nav-section-title:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Compact nav items within sections */
.nav-section .nav-item {
    padding: 10px 20px;
}

/* Submenu styling improvements */
.submenu {
    background: rgba(0, 0, 0, 0.15);
    margin: 4px 0;
    border-radius: 4px;
    margin-left: 12px;
    margin-right: 12px;
}

.submenu .submenu-item {
    padding: 8px 16px 8px 24px;
    font-size: 13px;
}
