/* Cocomic Creator Studio - Comics & Review Queue Styles */
:root {
    --cc-primary: #ef4444;
    --cc-primary-hover: #dc2626;
    --cc-primary-glow: rgba(239, 68, 68, 0.25);
    --cc-accent: #8b5cf6;
    --cc-bg-card: rgba(18, 24, 38, 0.85);
    --cc-border: rgba(255, 255, 255, 0.08);
    --cc-border-hover: rgba(239, 68, 68, 0.4);
    --cc-text-primary: #f8fafc;
    --cc-text-secondary: #94a3b8;
    --cc-text-muted: #64748b;
    --cc-success: #10b981;
    --cc-warning: #f59e0b;
    --cc-danger: #ef4444;
}

/* Nav Badge */
.queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    margin-left: auto;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
    line-height: 1;
}

/* View Header */
.cc-view-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
.cc-view-title h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cc-view-title p {
    color: var(--cc-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Policy Callout Banner */
.cc-policy-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(8px);
}
.cc-policy-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cc-policy-text h4 {
    margin: 0 0 3px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.cc-policy-text p {
    margin: 0;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Form Layout */
.cc-form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
@media (max-width: 991px) {
    .cc-form-grid {
        grid-template-columns: 1fr;
    }
}
.cc-card {
    background: rgba(18, 24, 38, 0.7);
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    margin-bottom: 24px;
}
.cc-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

/* Form Controls */
.cc-form-group {
    margin-bottom: 18px;
}
.cc-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.cc-form-group label .req {
    color: #ef4444;
}
.cc-input, .cc-select, .cc-textarea {
    width: 100%;
    background: rgba(10, 15, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 11px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.cc-input:focus, .cc-select:focus, .cc-textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    background: rgba(15, 23, 42, 0.95);
}
.cc-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}
.cc-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Genre Pills Grid */
.cc-genres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(10, 15, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.cc-genre-checkbox {
    display: none;
}
.cc-genre-pill {
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.cc-genre-checkbox:checked + .cc-genre-pill {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fff;
    font-weight: 600;
}

/* Cover & Drag-Drop Upload Area */
.cc-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 28px 16px;
    text-align: center;
    background: rgba(10, 15, 29, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.cc-dropzone:hover, .cc-dropzone.dragover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
}
.cc-dropzone-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}
.cc-dropzone-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.cc-dropzone-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
}
.cc-cover-preview {
    max-height: 260px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: none;
}

/* Upload Format Toggle (Images vs ZIP) */
.cc-mode-toggle {
    display: flex;
    background: rgba(10, 15, 29, 0.8);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}
.cc-mode-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.cc-mode-btn.active {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

/* Comic Autocomplete Selector */
.cc-search-wrapper {
    position: relative;
}
.cc-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    margin-top: 4px;
}
.cc-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}
.cc-search-item:hover {
    background: rgba(239, 68, 68, 0.15);
}
.cc-search-item img {
    width: 38px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}
.cc-search-item-info {
    flex: 1;
}
.cc-search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.cc-search-item-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}
.cc-selected-comic-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-top: 10px;
}
.cc-selected-comic-card img {
    width: 44px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
}

/* Page Gallery Grid (For Individual Images) */
.cc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(10, 15, 29, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 14px;
}
.cc-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cc-gallery-page-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}
.cc-gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: none;
}

/* ZIP File Selected Preview */
.cc-zip-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin-top: 14px;
}
.cc-zip-icon {
    font-size: 1.8rem;
    color: #10b981;
}

/* Submit Button & Progress */
.cc-btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}
.cc-btn-primary:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}
.cc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.cc-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 12px;
    display: none;
}
.cc-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transition: width 0.2s ease;
}

/* Review Queue Interface */
.cc-queue-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.cc-queue-filter-btn {
    padding: 7px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cc-queue-filter-btn.active {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Queue Item Card */
.cc-queue-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cc-queue-card {
    background: rgba(18, 24, 38, 0.8);
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.2s ease;
    flex-wrap: wrap;
}
.cc-queue-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(22, 30, 48, 0.9);
}
.cc-queue-card.status-pending {
    border-left: 4px solid #f59e0b;
}
.cc-queue-card.status-approved {
    border-left: 4px solid #10b981;
}
.cc-queue-card.status-auto_published {
    border-left: 4px solid #8b5cf6;
}
.cc-queue-card.status-rejected {
    border-left: 4px solid #ef4444;
}

.cc-queue-thumb {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
}
.cc-queue-info {
    flex: 1;
    min-width: 220px;
}
.cc-queue-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cc-queue-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.cc-queue-sub {
    font-size: 0.86rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* Countdown Badge */
.cc-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
}
.cc-countdown-badge.expired {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c084fc;
}

/* Queue Actions */
.cc-queue-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.cc-btn-sm {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.cc-btn-sm.preview {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cc-btn-sm.preview:hover {
    background: rgba(255, 255, 255, 0.16);
}
.cc-btn-sm.approve {
    background: #10b981;
    color: #fff;
}
.cc-btn-sm.approve:hover {
    background: #059669;
}
.cc-btn-sm.reject {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.cc-btn-sm.reject:hover {
    background: #ef4444;
    color: #fff;
}

/* Lightbox Preview Modal */
.cc-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 8, 18, 0.94);
    z-index: 99999;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(8px);
}
.cc-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}
.cc-lightbox-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 16px;
}
.cc-lightbox-body img {
    max-width: 900px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.cc-lightbox-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}


/* Dropzone Children Pointer Isolation */
.cc-dropzone * { pointer-events: none; }
