/* FloatyFAQ Admin Styles */

.floatyfaq-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floatyfaq-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.floatyfaq-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.floatyfaq-close-modal {
    margin-left: 10px;
}

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

.floatyfaq-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.floatyfaq-stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 8px;
}

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

/* Table improvements */
.wp-list-table td {
    vertical-align: middle;
}

.wp-list-table .button-small {
    margin-right: 5px;
}

/* Form styling */
.form-table th {
    width: 200px;
}

.form-table input[type="text"],
.form-table input[type="url"],
.form-table input[type="number"],
.form-table select,
.form-table textarea {
    width: 100%;
    max-width: 500px;
}

.form-table input[type="datetime-local"] {
    max-width: 20em;
}

/* Success/Error messages */
.floatyfaq-message {
    padding: 12px 20px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.floatyfaq-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.floatyfaq-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Responsive */
@media (max-width: 782px) {
    .floatyfaq-modal-content {
        padding: 20px;
    }
    
    .floatyfaq-stats-grid {
        grid-template-columns: 1fr;
    }
}
