/**
 * Service Dashboard Pro - Public Styles
 *
 * Frontend styles for the Service Dashboard Pro plugin
 */

.service-dashboard-pro {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px 0;
}

.service-dashboard-pro .dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-dashboard-pro .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.service-dashboard-pro .dashboard-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

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

.service-dashboard-pro .stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #007cba;
}

.service-dashboard-pro .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #007cba;
    margin: 0 0 10px 0;
}

.service-dashboard-pro .stat-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

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

.service-dashboard-pro .service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-dashboard-pro .service-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.service-dashboard-pro .service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-dashboard-pro .service-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.service-dashboard-pro .service-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.service-dashboard-pro .service-status.active {
    background: #d4edda;
    color: #155724;
}

.service-dashboard-pro .service-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.service-dashboard-pro .service-status.warning {
    background: #fff3cd;
    color: #856404;
}

.service-dashboard-pro .service-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.service-dashboard-pro .metric {
    text-align: center;
}

.service-dashboard-pro .metric-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.service-dashboard-pro .metric-label {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.service-dashboard-pro .loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

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

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

.service-dashboard-pro .error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.service-dashboard-pro .success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-dashboard-pro .dashboard-container {
        padding: 15px;
    }

    .service-dashboard-pro .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .service-dashboard-pro .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .service-dashboard-pro .services-grid {
        grid-template-columns: 1fr;
    }

    .service-dashboard-pro .service-metrics {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .service-dashboard-pro {
        color: #e0e0e0;
    }

    .service-dashboard-pro .dashboard-container {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .service-dashboard-pro .service-card {
        background: #3d3d3d;
        border-color: #555;
        color: #e0e0e0;
    }

    .service-dashboard-pro .stat-card {
        background: #3d3d3d;
        color: #e0e0e0;
    }
}
