/**
 * Admin Styles - Birthday Flyer Creator
 */

.coco-flyer-admin {
    padding: 20px 0;
}

/* Tabs */
.coco-flyer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
}

.tab-button:hover {
    color: #2271b1;
}

.tab-button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

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

.tab-content.active {
    display: block;
}

/* Cards */
.coco-flyer-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.coco-flyer-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    color: #1d2327;
}

.coco-flyer-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

/* Stats Grid */
.coco-flyer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card.success {
    border-left: 4px solid #00a32a;
}

.stat-card.warning {
    border-left: 4px solid #dba617;
}

.stat-card.error {
    border-left: 4px solid #d63638;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Venue Cards */
.venue-card {
    border-left: 4px solid #2271b1;
}

.venue-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.asset-section {
    padding: 20px;
    background: #f6f7f7;
    border-radius: 6px;
}

.asset-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-section img {
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
}

.upload-asset-btn {
    margin-top: 10px;
}

.color-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.color-fields label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.color-fields input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #ccd0d4;
    border-radius: 4px;
    cursor: pointer;
}

.brand-field {
    margin-top: 8px;
}

.save-venue-btn {
    margin-top: 20px;
}

/* Jobs Table */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.jobs-header h2 {
    margin: 0;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.filter-btn.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: #d7f7de;
    color: #007017;
}

.status-error {
    background: #fde4e5;
    color: #9b1c23;
}

.status-warning {
    background: #fcf3cd;
    color: #7e4b00;
}

.status-info {
    background: #d8e7f5;
    color: #004a7c;
}

/* Form Table Overrides */
.form-table th {
    width: 200px;
    font-weight: 600;
}

.form-table td {
    padding: 15px 10px;
}

/* Test Mode Warning */
.form-table tr:has(#test_mode) td label span {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Code Block */
code {
    background: #f0f0f1;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .coco-flyer-tabs {
        flex-direction: column;
    }
    
    .venue-assets-grid {
        grid-template-columns: 1fr;
    }
    
    .jobs-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* WP List Table Button Overrides */
.wp-list-table .button-small {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 4px;
}

