/* Citrus settings: widen cache duration input slightly */
.citrus-admin #citrus_cache_duration {
    width: 100px;
}
/* Citrus Admin Styles */

.citrus-admin {
    max-width: 1200px;
    margin: 20px 0;
}

.citrus-version {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

.citrus-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dashboard Cards */
.citrus-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dashboard-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.card-icon {
    font-size: 36px;
    line-height: 1;
}

.card-content h3 {
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.card-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Quick Actions */
.citrus-actions {
    margin: 30px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.citrus-actions .button-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    height: auto;
    font-size: 16px;
}

.citrus-actions .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Messages */
.citrus-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid;
}

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

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

.citrus-message.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Settings Form */
.citrus-settings-form {
    margin: 30px 0;
}

.citrus-settings-form .form-table th {
    padding: 20px 10px 20px 0;
    vertical-align: top;
}

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

.citrus-settings-form input[type="text"],
.citrus-settings-form input[type="password"],
.citrus-settings-form input[type="number"],
.citrus-settings-form select {
    padding: 8px 12px;
    font-size: 14px;
}

.citrus-settings-form .description {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

/* Usage Instructions */
.citrus-usage {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.citrus-usage h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.usage-section {
    margin: 25px 0;
}

.usage-section h3 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 16px;
}

.usage-section code {
    display: inline-block;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    margin: 5px 0;
    color: #d63384;
}

.usage-section p {
    margin: 8px 0;
    line-height: 1.6;
}

/* System Info */
.citrus-system-info {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.citrus-system-info h3 {
    margin-top: 0;
    color: #333;
}

.citrus-system-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.citrus-system-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.citrus-system-info li:last-child {
    border-bottom: none;
}

.citrus-system-info strong {
    display: inline-block;
    min-width: 180px;
    color: #333;
}

/* Loading State */
.citrus-loading {
    opacity: 0.6;
    pointer-events: none;
}

.citrus-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tabs */
.citrus-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

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

.citrus-tab-button:hover {
    color: #667eea;
    background: #f8f9fa;
}

.citrus-tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

.citrus-tab-content {
    display: none;
}

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

.citrus-tab-content .usage-section {
    margin-bottom: 30px;
}

.citrus-tab-content .usage-section h4 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 14px;
}

.citrus-tab-content .usage-section code {
    display: block;
    padding: 12px;
    background: #f5f5f5;
    border-left: 3px solid #667eea;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
}

.citrus-tab-content .usage-section table {
    margin-top: 15px;
}

.citrus-tab-content .usage-section table td code {
    display: inline;
    padding: 2px 6px;
    background: #f5f5f5;
    border: none;
    margin: 0;
    font-size: 12px;
}

.citrus-tab-content .usage-section table td {
    padding: 12px;
}

.citrus-tab-content .usage-section table th {
    background: #f8f9fa;
    padding: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 782px) {
    .citrus-dashboard {
        grid-template-columns: 1fr;
    }
    
    .citrus-actions {
        flex-direction: column;
    }
    
    .citrus-actions .button-hero {
        width: 100%;
        justify-content: center;
    }
    
    .citrus-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .citrus-tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}
