/* ==========================================================================
   Luminotecnia Pro + Curvas Fotométricas - ElectroWeb
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

h1 {
    font-size: 26px;
    font-weight: 600;
    color: #1a2634;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subhead {
    color: #4a5b6e;
    font-size: 15px;
    border-left: 4px solid #fbbf24;
    padding-left: 14px;
    margin: 6px 0 24px 0;
    background: #fffbeb;
    border-radius: 0 12px 12px 0;
    line-height: 1.5;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    background: transparent;
    color: #4a5b6e;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.tab-btn.active {
    background: white;
    color: #1a2634;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.5);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    background: #fafcff;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid #e9edf3;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.3px;
}

.input-group input,
.input-group select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ced8e5;
    background: white;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    transition: 0.15s;
}

.input-group input:focus,
.input-group select:focus {
    outline: 2px solid #fbbf24;
    border-color: transparent;
}

.input-group .unit {
    font-size: 11px;
    color: #6b7f94;
}

.result-box {
    background: #0b1e2f;
    border-radius: 18px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px 24px;
    margin: 16px 0 8px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-item .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8aa3c0;
}

.result-item .value {
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
}

.result-item .value.positive { color: #7dd3fc; }
.result-item .value.warning { color: #fcd34d; }
.result-item .value.success { color: #6ee7b7; }

.result-item .sub {
    font-size: 12px;
    color: #b0c7df;
}

.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.status-badge.excellent { background: #1a3a2a; color: #6ee7b7; }
.status-badge.good { background: #1a2a4a; color: #93b3e8; }
.status-badge.fair { background: #4a3a1a; color: #fcd34d; }
.status-badge.poor { background: #4a1a1a; color: #fca5a5; }

.canvas-container {
    background: #0b1e2f;
    border-radius: 18px;
    padding: 20px;
    margin: 16px 0;
    text-align: center;
}

.canvas-container canvas {
    max-width: 100%;
    height: auto;
    background: #0b1e2f;
    border-radius: 12px;
}

.canvas-title {
    color: #b0c7df;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: 0.15s;
    background: #eef2f6;
    color: #1e2a3a;
}

.btn-primary {
    background: #1e2a3a;
    color: white;
}

.btn-primary:hover {
    background: #2d3f55;
    transform: scale(1.02);
}

.btn-secondary {
    background: #e2e8f0;
}

.btn-secondary:hover {
    background: #d0d8e4;
}

.btn-warning {
    background: #fbbf24;
    color: #1a2634;
}

.btn-warning:hover {
    background: #f59e0b;
}

.footer-note {
    margin-top: 24px;
    font-size: 13px;
    color: #5a6f84;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.reference-table {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    overflow-x: auto;
}

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

.reference-table th,
.reference-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.reference-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1a2634;
}

@media (max-width: 768px) {
    .container { padding: 16px; }
    .grid-2col { grid-template-columns: 1fr; }
    .input-grid { grid-template-columns: 1fr 1fr; }
    .result-box { grid-template-columns: 1fr 1fr; }
    .result-item .value { font-size: 17px; }
    .tabs { gap: 4px; }
    .tab-btn { font-size: 12px; padding: 8px 10px; min-width: 60px; }
}
