*{box-sizing:border-box}
:root{
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:#18212f;
    background:#f3f5f8;
}
body{margin:0}
.login-layout{
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:radial-gradient(ellipse at top left,#f9dce2,transparent 55%),#f3f5f8;
}
.login-card{
    width:100%;
    max-width:440px;
    background:white;
    padding:38px;
    border-radius:24px;
    border-top:5px solid #c8102e;
    box-shadow:0 20px 70px #18212f15;
}
.brand{
    font-size:32px;
    font-weight:900;
    letter-spacing:-2px;
    color:#c8102e;
}
.brand span{color:#18212f;margin-left:5px}
.eyebrow{
    font-size:10px;
    letter-spacing:2px;
    font-weight:700;
    color:#89909c;
    margin-top:5px;
}
h1{font-size:28px;letter-spacing:-1px;margin:32px 0 8px}
.subtitle{color:#697386;font-size:14px;line-height:1.6;margin-bottom:28px}
label{display:block;font-size:13px;font-weight:650;margin:18px 0 8px}
input{
    width:100%;
    padding:15px;
    font:inherit;
    font-size:16px;
    border:1px solid #dce1e8;
    border-radius:12px;
    background:#f8fafc;
    outline:none;
}
input:focus{
    border-color:#c8102e;
    box-shadow:0 0 0 3px #c8102e15;
}
button{
    width:100%;
    margin-top:24px;
    border:0;
    border-radius:12px;
    padding:16px;
    background:#c8102e;
    color:white;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
button:hover{background:#a50c25}
.error,.success{
    padding:14px;
    border-radius:10px;
    font-size:14px;
    margin:16px 0;
}
.error{background:#fff0f2;color:#ad102a}
.success{background:#ecfdf3;color:#166534}
footer{
    margin-top:30px;
    padding-top:20px;
    border-top:1px solid #edf0f4;
    text-align:center;
    font-size:12px;
    color:#89909c;
}
@media(max-width:480px){
    .login-layout{padding:16px}
    .login-card{padding:26px}
}

.station-page{width:100%;max-width:850px;margin:auto;padding:24px}
.station-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.logout{width:auto;margin:0;padding:10px 18px;background:#e8ebef;color:#18212f}
.logout:hover{background:#dce1e8}
.panel{background:white;border:1px solid #e6e9ef;border-radius:20px;padding:24px;margin-bottom:16px;box-shadow:0 4px 18px #18212f05}
.station-id{color:#c8102e;font-size:13px;font-weight:800;letter-spacing:1px}
.station-page h1{margin:12px 0 24px}
.muted{font-size:12px;color:#778191;margin-top:8px}
.progress-label{display:flex;justify-content:space-between;font-size:13px;margin:26px 0 10px}
.progress-track{height:10px;background:#edf0f4;border-radius:20px;overflow:hidden}
.progress-track div{height:100%;background:#16a34a}
.category-heading{display:flex;align-items:flex-start;gap:14px}
.category-number{background:#fff0f2;color:#c8102e;font-weight:800;padding:12px;border-radius:12px}
.category h2{font-size:17px;margin:0 0 6px}
.category p{font-size:13px;color:#697386;margin:0;line-height:1.6}
.upload-zone{margin-top:20px;border:2px dashed #dce1e8;border-radius:14px;background:#f8fafc;padding:25px;display:flex;align-items:center;flex-direction:column;gap:7px}
.upload-icon{font-size:30px;color:#c8102e}
.upload-zone small{color:#89909c;font-size:11px}
.missing-option{display:flex;align-items:center;gap:10px}
.missing-option input{width:18px;height:18px}
button:disabled{opacity:.5;cursor:not-allowed}
.submit-report{margin-top:8px}
@media(max-width:600px){
.station-page{padding:14px}
.panel{padding:18px;border-radius:16px}
.station-page h1{font-size:24px}
.category h2{font-size:15px}
}

/* SP - Panel administratora */

.admin-page {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
    gap: 12px;
    margin: 18px 0;
}

.admin-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    border-top: 4px solid #64748b;
    color: #172033;
}

.admin-stat span {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.admin-stat strong {
    display: block;
    font-size: 34px;
    margin-top: 8px;
}

.admin-stat.submitted {border-top-color:#16a34a;}
.admin-stat.draft {border-top-color:#eab308;}
.admin-stat.new {border-top-color:#dc2626;}
.admin-stat.revision {border-top-color:#ea580c;}

.admin-station {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.admin-station[hidden] {
    display: none !important;
}

.admin-station-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-station-top strong {
    font-size: 19px;
}

.admin-station small {
    display: block;
    color: #64748b;
    margin-top: 5px;
}

.admin-status {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.admin-status.submitted {
    background:#dcfce7;
    color:#166534;
}

.admin-status.draft {
    background:#fef9c3;
    color:#854d0e;
}

.admin-status.new {
    background:#fee2e2;
    color:#991b1b;
}

.admin-status.revision {
    background:#ffedd5;
    color:#9a3412;
}

#station-filter {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    margin: 12px 0;
    background: white;
    color: #172033;
}

.admin-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    background: #c8102e;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    margin: 8px 0 16px;
}

.admin-download:hover {
    background: #a50d26;
}

.admin-download.individual {
    font-size: 13px;
    padding: 9px 15px;
    margin: 12px 0 4px;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 16px;
}

.admin-photo {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    min-width: 0;
}

.admin-photo img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #e9edf2;
    border-radius: 8px;
    display: block;
}

.admin-photo small {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 8px;
    color: #64748b;
}

.admin-download.preview-link {
    background: #172033;
    margin-right: 8px;
}


.revision-alert {
    background: #fff1f2;
    border: 1px solid #fda4af;
    border-radius: 10px;
    color: #991b1b;
    padding: 14px;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.revision-form {
    margin-top: 12px;
}

.revision-form summary {
    cursor: pointer;
    color: #c8102e;
    font-weight: 700;
    padding: 10px 0;
}

.revision-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font: inherit;
    resize: vertical;
    margin: 10px 0;
}

