/**
 * Tiriri - Admin Dashboard Styles
 */

.tiriri-wrap {
    max-width: 1200px;
}

/* Deadline Banner */
.tiriri-deadline-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tiriri-deadline-banner__content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tiriri-deadline-days {
    background: #e74c3c;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

.tiriri-deadline-date {
    color: #adb5bd;
    font-size: 13px;
}

.tiriri-deadline-active {
    background: #e74c3c;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    animation: tiririPulse 2s infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .tiriri-deadline-active {
        animation: none;
    }
}

/* Status Cards */
.tiriri-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.tiriri-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.tiriri-card h2 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tiriri-card__number {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 8px;
}

.tiriri-card__breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #666;
}

.tiriri-card__label {
    font-size: 13px;
    color: #666;
}

/* Status Indicators */
.tiriri-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.tiriri-status--green {
    background: #d4edda;
    color: #155724;
}

.tiriri-status--yellow {
    background: #fff3cd;
    color: #856404;
}

.tiriri-status--red {
    background: #f8d7da;
    color: #721c24;
}

.tiriri-status--gray {
    background: #e9ecef;
    color: #495057;
}

/* Card status coloring */
.tiriri-card--compliant {
    border-left: 4px solid #27ae60;
}

.tiriri-card--partial {
    border-left: 4px solid #f39c12;
}

.tiriri-card--non_compliant {
    border-left: 4px solid #e74c3c;
}

.tiriri-card--no_ai_detected,
.tiriri-card--no_action_needed {
    border-left: 4px solid #95a5a6;
}

/* Sections */
.tiriri-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

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

.tiriri-section__header h2 {
    margin: 0;
}

.tiriri-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Settings Sections */
.tiriri-settings-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.tiriri-settings-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Meta box badge */
.tiriri-badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    vertical-align: middle;
}

/* Table improvements */
.tiriri-section .wp-list-table td {
    vertical-align: top;
    padding: 12px 10px;
}

.tiriri-section .wp-list-table .description {
    margin-top: 4px;
}

/* Manual form */
#tiriri-manual-form .form-table th {
    width: 120px;
    padding: 10px 10px 10px 0;
}

/* Pro Badge */
.tiriri-pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Pro Upsell Box */
.tiriri-pro-upsell {
    background: #f8f5ff;
    border: 1px dashed #a855f7;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 12px;
}

.tiriri-pro-upsell p {
    margin: 0 0 12px;
    color: #495057;
}

.tiriri-pro-upsell .button-primary {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    border-color: #6c5ce7;
}

.tiriri-pro-upsell .button-primary:hover {
    background: linear-gradient(135deg, #5b4bd5, #9645e5);
    border-color: #5b4bd5;
}

/* Responsive */
@media (max-width: 782px) {
    .tiriri-cards {
        grid-template-columns: 1fr;
    }

    .tiriri-deadline-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }
}
