@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

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

.stat-name {
    color: #0f1f3d;
    font-weight: 700;
    font-size: 13px;
}


@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* footer */
.site-footer {
    background: #0f1f3d;
    margin-top: 3rem;
    padding: 1.25rem 0;
}

.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-right: auto;
}

.footer-brand span {
    color: #4FC9A4;
}

.footer-copy {
    font-size: 12px;
    color: #7a9bc0;
    font-weight: 500;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #F0F4F8;
    color: #1a2b4a;
}

/* navigation */
nav {
    background: #0f1f3d;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

nav .brand {
    font-size: 17px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-right: auto;
    letter-spacing: -0.3px;
}

nav .brand span {
    color: #4FC9A4;
}

nav a {
    color: #a0b0c8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

/* layout */
.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* cards */
.card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* buttons */
.btn {
    padding: 9px 20px;
    background: #0f1f3d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    letter-spacing: 0.1px;
}

.btn:hover {
    background: #1a3560;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,31,61,0.2);
}

.btn-accent {
    background: #4FC9A4;
    color: #0f1f3d;
}

.btn-accent:hover {
    background: #3ab891;
    box-shadow: 0 4px 12px rgba(79,201,164,0.3);
}

/* typography */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f1f3d;
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #8a9bb5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
}

/* dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.list-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14px;
    gap: 8px;
}

.list-row:last-child {
    border-bottom: none;
}

.empty-state {
    font-size: 14px;
    color: #8a9bb5;
    padding: 1rem 0;
    text-align: center;
}

/* tags */
.tag {
    font-size: 11px;
    padding: 4px 10px;
    background: #e8f5f0;
    color: #1a7a5e;
    border-radius: 20px;
    margin-left: 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tag-navy {
    background: #e8ecf5;
    color: #0f1f3d;
}

/* forms */
label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
    margin-top: 14px;
}

input, select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #dde3ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    color: #1a2b4a;
    background: #fafbfc;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: #4FC9A4;
    background: white;
}

/* report page */
.scan-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 10px;
    background: #f0f4f8;
}

.report-text {
    font-size: 15px;
    line-height: 1.75;
    color: #2d3748;
}

.finding-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14px;
}

.finding-row:last-child {
    border-bottom: none;
}

.severity-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.severity-normal  { background: #48bb78; }
.severity-mild    { background: #4299e1; }
.severity-moderate{ background: #ed8936; }
.severity-severe  { background: #e53e3e; }

.confidence-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.confidence-bar {
    background: #e8ecf5;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #4FC9A4, #38b2ac);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.disclaimer {
    font-size: 12px;
    color: #8a9bb5;
    margin-top: 1.25rem;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #dde3ed;
}

/* stat cards for dashboard */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #0f1f3d;
    letter-spacing: -0.5px;
}

.stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #8a9bb5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.stat-card .stat-accent {
    color: #4FC9A4;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #c0e8da;
    border-top: 3px solid #4FC9A4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}