/* === SAM Provisioning Engine - Frontend Styles === */

.sam-pe-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 100%;
}

/* === Frontend Stats === */
.sam-pe-fe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.sam-pe-fe-stat {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.sam-pe-fe-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.sam-pe-fe-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Status-colored stat cards */
.sam-pe-fe-stat--pending .sam-pe-fe-stat-value    { color: #e65100; }
.sam-pe-fe-stat--running .sam-pe-fe-stat-value    { color: #1565c0; }
.sam-pe-fe-stat--completed .sam-pe-fe-stat-value  { color: #2e7d32; }
.sam-pe-fe-stat--failed .sam-pe-fe-stat-value     { color: #c62828; }

/* === Frontend Section === */
.sam-pe-fe-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sam-pe-fe-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

/* === Frontend Table === */
.sam-pe-fe-table {
    width: 100%;
    border-collapse: collapse;
}

.sam-pe-fe-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.sam-pe-fe-table td:first-child {
    width: 40%;
}

/* === Frontend Badge === */
.sam-pe-fe-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sam-pe-fe-badge--pending    { background: #fff3e0; color: #e65100; }
.sam-pe-fe-badge--queued     { background: #e3f2fd; color: #1565c0; }
.sam-pe-fe-badge--running    { background: #e8f5e9; color: #2e7d32; }
.sam-pe-fe-badge--completed  { background: #e8f5e9; color: #2e7d32; }
.sam-pe-fe-badge--failed     { background: #fbe9e7; color: #c62828; }
.sam-pe-fe-badge--cancelled  { background: #f5f5f5; color: #757575; }

/* === Big Stats === */
.sam-pe-fe-stats-overview {
    text-align: center;
    padding: 20px;
}

.sam-pe-fe-big-stat {
    display: inline-block;
    margin: 0 20px;
    vertical-align: top;
}

.sam-pe-fe-big-stat-value {
    font-size: 48px;
    font-weight: 800;
    color: #2271b1;
    line-height: 1;
}

.sam-pe-fe-big-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* === Responsive === */
@media screen and (max-width: 600px) {
    .sam-pe-fe-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .sam-pe-fe-big-stat-value {
        font-size: 32px;
    }

    .sam-pe-fe-big-stat {
        display: block;
        margin: 20px 0;
    }
}
