/* ===== ADMIN PANEL BRAND DESIGN SYSTEM ===== */
.admin-page {
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.admin-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.admin-logo img {
    height: 40px;
    object-fit: contain;
}

.admin-logo span {
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    font-weight: 500;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-brand-dark);
    background-color: var(--color-light-gray);
    padding: 6px 12px;
    border-radius: 4px;
}

/* Main Container */
.admin-main-container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 40px auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
}

/* Login Card styling */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-brand);
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.15);
}

.form-help {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.login-error-msg {
    color: #d62828;
    background-color: #fdf0ed;
    border: 1px solid #f5c2b7;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.dashboard-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-brand);
}

.tab-btn.active {
    color: var(--color-text-main);
    border-bottom-color: var(--color-brand);
    font-weight: 600;
}

/* Tab Content */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tab-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
}

.tab-desc {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-top: -16px;
    margin-bottom: 24px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.admin-table th {
    background-color: var(--color-light-gray);
    color: var(--color-text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: rgba(197, 168, 128, 0.03);
}

.table-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
}

.badge-perm {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--color-light-gray);
    color: var(--color-text-muted);
    font-size: 11px;
    border-radius: 3px;
    margin-right: 6px;
    font-weight: 600;
}

.badge-perm.users { background-color: #e2eafc; color: #3f37c9; }
.badge-perm.products { background-color: #d8f3dc; color: #1b4332; }
.badge-perm.images { background-color: #fde2e4; color: #a4133c; }

/* Modals */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal-content.large-modal {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
}

.modal-close {
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text-main);
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .modal-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-section-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-brand-dark);
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--color-border-light);
    padding-bottom: 6px;
}

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

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    margin-top: 30px;
}

/* Translation Tabs Sub-System */
.translations-container {
    margin-top: 30px;
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: 20px;
    background-color: var(--color-light-gray);
}

.translation-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 15px;
}

.trans-tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
}

.trans-tab-btn.active {
    background-color: var(--bg-card);
    color: var(--color-brand-dark);
    border-color: var(--color-border-light);
    font-weight: 700;
}

.trans-pane {
    display: none;
}

.trans-pane.active {
    display: block;
    background-color: var(--bg-card);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
}

/* Settings Tab Card */
.settings-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    box-shadow: var(--shadow-sm);
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Image Manager Grid Styles */
.images-manager-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.image-manager-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.image-manager-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--color-text-main);
}

/* Slideshow Lists with Drag support representation */
.slideshow-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.slide-item-card {
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: grab;
    transition: var(--transition-fast);
}

.slide-item-card:active {
    cursor: grabbing;
}

.slide-item-card.dragging {
    opacity: 0.5;
    border-color: var(--color-brand);
}

.slide-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: var(--color-light-gray);
}

.slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-actions-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.action-circle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(26,26,26,0.8);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition-fast);
}

.action-circle-btn:hover {
    background-color: var(--color-brand);
    color: var(--color-text-main);
}

.slide-info-panel {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border-light);
}

.slide-reorder-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: rgba(197, 168, 128, 0.95);
    color: var(--color-text-main);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 5;
}

/* Static section images list */
.static-images-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.static-image-item {
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: 16px;
    background-color: var(--bg-primary);
    display: flex;
    gap: 15px;
    align-items: center;
}

.static-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
}

.static-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.static-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-main);
}

.static-path {
    font-size: 11px;
    color: var(--color-text-muted);
    word-break: break-all;
}

/* Simple Button Modifications */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-secondary {
    border-color: var(--color-border);
}

.w-100 {
    width: 100%;
}

.btn-danger-sm {
    background-color: #d62828;
    color: #FFFFFF;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger-sm:hover {
    background-color: #b01c1c;
}

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

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

/* ===== PRODUCT DETAIL IMAGE SLOT EDITOR ===== */
.image-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.image-slot-card {
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    padding: 10px;
    background-color: var(--color-light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.image-slot-card:hover {
    border-color: var(--color-brand);
    background-color: rgba(197, 168, 128, 0.05);
}

.image-slot-card.drag-over {
    border-color: var(--color-brand);
    border-style: dashed;
    background-color: rgba(197, 168, 128, 0.15);
    transform: scale(1.02);
}

.image-slot-card.has-image {
    border-style: solid;
    border-color: var(--color-border-light);
    background-color: var(--bg-primary);
}

.image-slot-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.image-slot-actions {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
}

.image-slot-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(26,26,26,0.7);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    z-index: 5;
}

.image-slot-badge.cover {
    background-color: var(--color-brand);
    color: var(--color-text-main);
}

.image-slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 11px;
    text-align: center;
}

.image-slot-placeholder span {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-brand);
}

/* Color Variant Accordion styles */
.color-accordion-item {
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.color-accordion-header {
    background-color: var(--color-light-gray);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.color-accordion-header:hover {
    background-color: rgba(197, 168, 128, 0.05);
}

.color-accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.color-accordion-title input[type="text"] {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    width: 150px;
    font-weight: 500;
    background-color: var(--bg-primary);
    color: var(--color-text-main);
}

.color-accordion-body {
    padding: 16px;
    border-top: 1px solid var(--color-border-light);
    display: none;
}

.color-accordion-item.open .color-accordion-body {
    display: block;
}

.btn-delete-color {
    background: none;
    border: none;
    color: #d62828;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
}

.btn-delete-color:hover {
    text-decoration: underline;
}

.accordion-arrow {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.color-accordion-item.open .accordion-arrow {
    transform: rotate(90deg);
}

/* Inspect & Download Button Styles */
.btn-info {
    background-color: #17a2b8;
    color: #FFFFFF;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-info:hover {
    background-color: #138496;
}

.photo-download-btn {
    transition: background-color 0.2s, transform 0.2s !important;
}

.photo-download-btn:hover {
    background-color: #C147E9 !important; /* Brand purple */
    transform: scale(1.1);
}

/* ===== CATALOG TAB STYLES ===== */
.catalog-view-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
}

.catalog-hero {
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.catalog-icon {
    font-size: 64px;
}

.catalog-hero h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-brand-dark);
}

.catalog-hero p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 15px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 6px;
}

/* Wizard Grid */
.wizard-title {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-brand-dark);
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 10px;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wizard-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: 20px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wizard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-brand);
}

.wizard-step-num {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    font-weight: 700;
    color: rgba(197, 168, 128, 0.15); /* light brand color */
    line-height: 1;
}

.wizard-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.wizard-card p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    line-height: 1.4;
}

.wizard-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: var(--bg-card);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.radio-label:hover {
    background-color: var(--color-light-gray);
    border-color: var(--color-border-light);
}

.radio-label input[type="radio"] {
    accent-color: var(--color-brand);
    cursor: pointer;
}

/* Catalog Preview Grid */
.catalog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.catalog-page-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.catalog-page-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.catalog-page-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 Aspect Ratio */
    background-color: var(--color-light-gray);
}

.catalog-page-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-page-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.catalog-page-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.catalog-page-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-page-details {
    font-size: 11px;
    color: var(--color-text-muted);
}

.catalog-page-controls {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.btn-page-nav {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--color-border-light);
    padding: 5px 0;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page-nav:hover {
    background-color: var(--color-brand);
    color: white;
    border-color: var(--color-brand);
}

.btn-page-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-page-delete {
    background-color: #ffeef0;
    border: 1px solid #ffccd1;
    color: #d62828;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page-delete:hover {
    background-color: #d62828;
    color: white;
    border-color: #d62828;
}

/* Spinner & Overlay */
.catalog-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(197, 168, 128, 0.1);
    border-top: 4px solid var(--color-brand);
    border-radius: 50%;
    animation: catalog-spin 1s linear infinite;
}

@keyframes catalog-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.catalog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.catalog-overlay-content {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 320px;
    width: 90%;
}

.catalog-overlay-content h4 {
    margin: 5px 0 0 0;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-brand-dark);
}

.catalog-overlay-content p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ===== PRODUCTION CALENDAR & EDITOR STYLES ===== */
.calendar-container {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.calendar-cell {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 90px;
    transition: all 0.2s;
    overflow-y: auto;
}

.calendar-cell:hover {
    border-color: var(--color-brand);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.calendar-cell.inactive {
    background-color: var(--color-light-gray);
    opacity: 0.5;
}

.calendar-cell.today {
    border: 2px solid var(--color-brand);
    background-color: rgba(197, 168, 128, 0.05);
}

.calendar-day-num {
    align-self: flex-end;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.calendar-cell.today .calendar-day-num {
    color: var(--color-brand-dark);
    font-weight: 700;
}

.calendar-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-item {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    color: #b7791f;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-item:hover {
    background-color: #ffe082;
}

/* Production Editor Row */
.production-row {
    background-color: var(--bg-primary);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: border-color 0.2s;
}

.production-row:hover {
    border-color: var(--color-brand);
}

.production-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.production-date-input {
    max-width: 200px;
}

.production-colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background-color: var(--bg-card);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
}

.production-color-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.production-color-checkbox-label input {
    accent-color: var(--color-brand);
}

.upcoming-productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.upcoming-card {
    background-color: var(--bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.upcoming-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-brand);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.upcoming-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

.upcoming-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.upcoming-card:hover .upcoming-img {
    transform: scale(1.05);
}

.upcoming-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.upcoming-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-brand-dark);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.upcoming-date {
    font-size: 13px;
    color: #b7791f;
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.upcoming-date span.days-left {
    color: #744210;
    font-size: 12px;
    font-weight: 700;
}

.upcoming-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.upcoming-color-badge {
    font-size: 11px;
    padding: 3px 8px;
    background-color: var(--color-light-gray);
    color: var(--color-text-dark);
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
    font-weight: 500;
}

/* Search and Sort styling */
.table-filter-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--bg-card);
    color: var(--color-text-main);
    transition: var(--transition-fast);
}

.search-input-wrapper input:focus {
    border-color: var(--color-brand);
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.15);
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color var(--transition-fast);
}

.sortable-header:hover {
    background-color: var(--color-border-light) !important;
    color: var(--color-brand-dark);
}

.sortable-header .sort-icon {
    font-size: 12px;
    margin-left: 5px;
    color: var(--color-text-muted);
}

.sortable-header.active-sort {
    color: var(--color-brand-dark);
    font-weight: 700;
}

.sortable-header.active-sort .sort-icon {
    color: var(--color-brand);
}

.calendar-cell.selected {
    background-color: rgba(197, 168, 128, 0.15) !important;
    border-color: var(--color-brand) !important;
    box-shadow: inset 0 0 0 1px var(--color-brand) !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .admin-header {
        padding: 10px 15px;
    }
    
    .admin-header-container {
        gap: 10px;
    }

    .admin-logo span {
        font-size: 16px;
    }

    .admin-main-container {
        margin: 20px auto;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .dashboard-tabs {
        margin-bottom: 20px;
        gap: 5px;
        padding-bottom: 8px;
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        scrollbar-width: none;
    }

    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Monthly Calendar Mobile Optimization */
    #calendar-days-grid {
        min-height: 280px !important;
        gap: 4px !important;
    }

    .calendar-container {
        padding: 15px !important;
    }

    .calendar-cell {
        min-height: 48px !important;
        padding: 4px !important;
        justify-content: space-between !important;
    }

    .calendar-weekdays {
        font-size: 11px !important;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
    }

    .calendar-day-num {
        font-size: 11px !important;
        align-self: center !important;
        margin: 0 !important;
    }

    .calendar-items-list {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 3px !important;
        width: 100% !important;
        margin-top: auto !important;
    }

    .calendar-item {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background-color: var(--color-brand) !important;
        border: none !important;
        padding: 0 !important;
        color: transparent !important;
        font-size: 0 !important;
        overflow: hidden !important;
        text-indent: -9999px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
}

