/**
 * SEODE Pagespeed Checkup Plugin Styles
 */

/* Container */
.seode-pagespeed-checkup-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.seode-pagespeed-checkup-title {
    margin-top: 0;
    color: #0033CC;
    font-size: 24px;
    text-align: center;
}

.seode-pagespeed-checkup-intro {
    margin-bottom: 20px;
    text-align: center;
}

/* Form */
.seode-pagespeed-checkup-form-container {
    margin-bottom: 20px;
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-row .required {
    color: #E53935;
}

.form-row button {
    padding: 10px 20px;
    background-color: #0033CC;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.form-row button:hover {
    background-color: #002299;
}

.form-row .spinner {
    display: inline-block;
    visibility: hidden;
    float: none;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: url(../images/spinner.gif) no-repeat;
    background-size: 20px 20px;
    opacity: 0.7;
}

/* Loading */
#seode-pagespeed-checkup-loading,
#seode-pagespeed-checkup-queue-message {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #0033CC;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.queue-progress {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.queue-progress-bar {
    height: 100%;
    background-color: #0033CC;
    width: 0;
    animation: progress 30s linear infinite;
}

@keyframes progress {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: background-color 0.3s ease;
}

.total-score-circle.green {
    background-color: #43A047;
    color: white;
}

.total-score-circle.yellow {
    background-color: #FFEB3B;
    color: #333;
}

.total-score-circle.red {
    background-color: #E53935;
    color: white;
}

.total-score-label {
    font-size: 14px;
    color: #666;
}

.results-section {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #0033CC;
    color: white;
}

.section-header h4 {
    margin: 0;
    color: white;
}

.section-score {
    font-weight: bold;
}

.section-status {
    margin-left: 10px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

.status-indicator.green {
    background-color: #43A047;
}

.status-indicator.yellow {
    background-color: #FFEB3B;
}

.status-indicator.red {
    background-color: #E53935;
}

.section-content {
    padding: 15px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 0 0 200px;
    font-weight: bold;
}

.detail-value {
    flex: 1;
}

.detail-value.good {
    color: #43A047;
}

.detail-value.average {
    color: #FF9800;
}

.detail-value.poor {
    color: #E53935;
}

/* Email Report */
.email-form {
    margin-top: 15px;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.consent-checkbox {
    margin-bottom: 15px;
}

.consent-checkbox input[type="checkbox"] {
    margin-right: 5px;
}

#email-report-message {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .seode-pagespeed-checkup-container {
        padding: 15px;
    }
    
    .results-header {
        flex-direction: column;
    }
    
    .total-score-container {
        margin-top: 15px;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        flex: 0 0 100%;
        margin-bottom: 5px;
    }
}

/* Admin Styles */
.seode-pagespeed-admin {
    max-width: 1200px;
}

.seode-pagespeed-admin-intro {
    margin-bottom: 20px;
}

.seode-pagespeed-admin-tabs {
    margin-top: 20px;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccd0d4;
    border-top: none;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.tab-content.active {
    display: block;
}

.seode-pagespeed-admin-form {
    max-width: 600px;
}

.seode-pagespeed-statistics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.statistics-card {
    flex: 1 1 200px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.statistics-card-header {
    padding: 10px 15px;
    background-color: #0033CC;
    color: white;
}

.statistics-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.statistics-card-body {
    padding: 20px;
    text-align: center;
}

.statistics-value {
    font-size: 24px;
    font-weight: bold;
}