/**
 * Admin styles for Cococure Booking Plugin
 */

/* Dashboard Styles */
.coco-booking-dashboard {
    margin: 20px 0;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin: 10px 0;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-actions .button {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dashboard-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.dashboard-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Analytics Styles */
.analytics-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.analytics-filters form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.analytics-filters label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.analytics-filters select,
.analytics-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.analytics-content {
    display: grid;
    gap: 30px;
}

.analytics-stats {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.analytics-stats h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    font-weight: 600;
}

.analytics-stats table {
    margin: 0;
    border: none;
}

.analytics-stats th,
.analytics-stats td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.analytics-stats th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.analytics-stats td:last-child {
    text-align: right;
    font-weight: 600;
}

.analytics-funnel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.analytics-funnel h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.funnel-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.funnel-step {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.funnel-step:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.step-name {
    flex: 1;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.step-count {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin: 0 20px;
    min-width: 60px;
    text-align: center;
}

.step-percentage {
    font-size: 14px;
    color: #666;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Export Styles */
.export-options {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.export-options h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.export-options .form-table {
    margin: 0;
}

.export-options th {
    width: 150px;
    padding: 15px 0;
    font-weight: 600;
    color: #333;
}

.export-options td {
    padding: 15px 0;
}

.export-options input,
.export-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.export-history {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.export-history h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Settings Styles */
.coco-booking-settings {
    max-width: 800px;
}

.settings-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.settings-field {
    margin-bottom: 20px;
}

.settings-field label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.settings-field .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Widget Styles */
.widget-content .coco-booking-btn {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.widget-content .coco-booking-events-widget {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .analytics-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .analytics-filters label {
        margin-bottom: 5px;
    }
    
    .funnel-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-count {
        margin: 0;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .analytics-stats th,
    .analytics-stats td {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notices */
.notice {
    margin: 15px 0;
    padding: 12px;
    border-left: 4px solid #00a0d2;
    background: #f7f7f7;
    border-radius: 0 4px 4px 0;
}

.notice.notice-success {
    border-left-color: #46b450;
    background: #f0f8f0;
}

.notice.notice-error {
    border-left-color: #dc3232;
    background: #fdf0f0;
}

.notice.notice-warning {
    border-left-color: #ffb900;
    background: #fff8e5;
}

/* Data Tables */
.booking-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.booking-data-table th,
.booking-data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.booking-data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.booking-data-table tr:hover {
    background: #f8f9fa;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.action-buttons .button {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-buttons .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
