/* Frontend CSS for Saur-Sathi Solar Design Software */

.saur-sathi-app-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    max-width: 1200px;
    margin: 20px auto;
    box-sizing: border-box;
}

.saur-sathi-app-container * {
    box-sizing: border-box;
}

/* Hero Section */
.saur-sathi-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.saur-sathi-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.2);
    color: #fef08a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    margin-bottom: 12px;
}

.hero-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.hero-desc {
    color: #94a3b8;
    font-size: 15px;
    margin: 0;
}

/* Main Layout Grid */
.saur-sathi-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .saur-sathi-layout {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.saur-sathi-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.card-body {
    padding: 24px;
    flex: 1;
}

/* Form Controls */
.field-group {
    margin-bottom: 18px;
}

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.saur-select, .saur-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
}

.saur-select:focus, .saur-input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-hint {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.quick-spec-chip {
    margin-top: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #475569;
    font-weight: 500;
}

.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

/* Status Banner */
.status-banner {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.banner-icon {
    font-size: 26px;
    width: 26px;
    height: 26px;
    margin-top: 2px;
}

.banner-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
}

.banner-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.status-idle {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.status-pass {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.status-pass .banner-icon { color: #16a34a; }

.status-fail {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.status-fail .banner-icon { color: #dc2626; }

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}

.highlight-metric {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.metric-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.metric-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 6px 0 4px 0;
}

.metric-value small {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.metric-sub {
    font-size: 11px;
    color: #0284c7;
    font-weight: 600;
}

/* Gauge Bar */
.gauge-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.gauge-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.gauge-bar-track {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gauge-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 75%, #ef4444 100%);
    width: 0%;
    border-radius: 6px;
    transition: width 0.4s ease-out;
}

.gauge-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

/* Validation Alerts */
.validations-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.val-item {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    gap: 10px;
}

.val-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

.val-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.val-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.val-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #166534;
}

/* Technical Summary Table */
.tech-specs-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.tech-specs-box h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-table td {
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #e2e8f0;
}

.tech-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
}
