/* =====================================================
   GLOBAL
   NeutroVetAI
===================================================== */

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

:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-light: #14b8a6;
    --green: #10b981;
    --blue: #3b82f6;
    --orange: #f59e0b;
    --red: #ef4444;

    --bg: #f4f7fb;
    --white: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --border: #e5e7eb;

    --sidebar: 250px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}


/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar);
    height: 100vh;

    background:
        linear-gradient(
            180deg,
            #064e3b 0%,
            #0f766e 50%,
            #115e59 100%
        );

    color: white;
    padding: 25px 18px;

    display: flex;
    flex-direction: column;

    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px 30px;
}

.brand-icon {
    width: 46px;
    height: 46px;

    background: rgba(255,255,255,0.15);

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 25px;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.12);
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 700;
}

.brand-text p {
    font-size: 10px;
    opacity: .7;
    margin-top: 3px;
}

.menu-title {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;

    padding: 10px;
    margin-top: 5px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 13px;

    color: rgba(255,255,255,.8);
    text-decoration: none;

    padding: 13px 14px;

    border-radius: 11px;

    font-size: 13px;

    transition: .25s;
}

.menu a:hover,
.menu a.active {
    background: rgba(255,255,255,.14);
    color: white;
}

.menu-icon {
    width: 23px;
    text-align: center;
    font-size: 17px;
}

.sidebar-bottom {
    margin-top: auto;

    padding: 15px;

    background: rgba(255,255,255,.09);

    border-radius: 13px;

    font-size: 11px;
    color: rgba(255,255,255,.75);

    line-height: 1.5;
}


/* =====================================================
   MAIN
===================================================== */

.main {
    margin-left: var(--sidebar);
    min-height: 100vh;
}


/* =====================================================
   TOPBAR
===================================================== */

.topbar {
    height: 75px;

    background: rgba(255,255,255,.92);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;

    position: sticky;
    top: 0;

    z-index: 100;
}

.page-title h2 {
    font-size: 18px;
}

.page-title span {
    color: var(--muted);
    font-size: 11px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #ecfdf5;

    color: #047857;

    padding: 8px 13px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: #10b981;

    border-radius: 50%;

    box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}


/* =====================================================
   CONTENT
===================================================== */

.content {
    padding: 32px;
    max-width: 1500px;
    margin: auto;
}


/* =====================================================
   WELCOME
===================================================== */

.welcome {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #064e3b,
            #0f766e 55%,
            #0d9488
        );

    border-radius: 22px;

    padding: 32px 35px;

    color: white;

    margin-bottom: 25px;

    box-shadow:
        0 15px 40px rgba(15,118,110,.20);
}

.welcome::after {
    content: "🐄";

    position: absolute;

    right: 45px;
    bottom: -18px;

    font-size: 120px;

    opacity: .12;
}

.welcome h1 {
    font-size: 27px;
    margin-bottom: 9px;
}

.welcome p {
    max-width: 650px;

    color: rgba(255,255,255,.75);

    font-size: 13px;

    line-height: 1.6;
}

.ai-badge {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    padding: 6px 11px;

    background: rgba(255,255,255,.12);

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 20px;

    font-size: 10px;

    margin-bottom: 14px;
}


/* =====================================================
   STAT CARDS
===================================================== */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 17px;

    margin-bottom: 25px;
}

.stat-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow:
        0 5px 18px rgba(15,23,42,.04);

    transition: .25s;
}

.stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(15,23,42,.08);
}

.stat-info span {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 8px;
}

.stat-info strong {
    font-size: 25px;
}

.stat-info small {
    display: block;

    color: #10b981;

    font-size: 10px;

    margin-top: 5px;
}

.stat-icon {
    width: 46px;
    height: 46px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.green-bg {
    background: #ecfdf5;
}

.blue-bg {
    background: #eff6ff;
}

.orange-bg {
    background: #fffbeb;
}

.purple-bg {
    background: #f5f3ff;
}


/* =====================================================
   SECTION
===================================================== */

.section-card {
    background: white;

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 27px;

    margin-bottom: 25px;

    box-shadow:
        0 5px 18px rgba(15,23,42,.04);
}

.section-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 17px;
}

.section-header p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}


/* =====================================================
   FORM
===================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;
}

.form-group label {
    font-size: 11px;

    color: #475569;

    font-weight: 600;

    margin-bottom: 7px;
}

.form-group input,
.form-group select {
    height: 43px;

    border: 1px solid #dbe2ea;

    border-radius: 9px;

    padding: 0 12px;

    outline: none;

    font-size: 12px;

    background: #fafbfc;

    color: #1e293b;

    transition: .2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);

    background: white;

    box-shadow:
        0 0 0 3px rgba(15,118,110,.08);
}


/* =====================================================
   BUTTONS
===================================================== */

.buttons {
    display: flex;

    gap: 10px;

    margin-top: 23px;
}

.btn {
    border: none;

    border-radius: 9px;

    height: 43px;

    padding: 0 20px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #0f766e,
            #0d9488
        );

    color: white;

    box-shadow:
        0 6px 15px rgba(15,118,110,.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;

    color: #475569;
}

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


/* =====================================================
   RESULT AREA
===================================================== */

.result-section {
    display: none;
}

.result-grid {
    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    gap: 20px;
}


/* =====================================================
   MAIN DIAGNOSIS
===================================================== */

.diagnosis-result {
    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #f0fdfa
        );

    border: 1px solid #ccfbf1;

    border-radius: 17px;

    padding: 28px;

    position: relative;

    overflow: hidden;
}

.diagnosis-result::after {
    content: "AI";

    position: absolute;

    right: 20px;
    bottom: -35px;

    font-size: 130px;

    font-weight: 900;

    color: rgba(15,118,110,.05);
}

.result-label {
    color: #64748b;

    font-size: 11px;

    margin-bottom: 8px;
}

.disease {
    font-size: 31px;

    color: #047857;

    font-weight: 800;

    margin-bottom: 10px;
}

.confidence {
    display: inline-flex;

    background: white;

    padding: 8px 13px;

    border-radius: 20px;

    color: #047857;

    font-weight: 700;

    font-size: 12px;
}


/* =====================================================
   NEUTROSOFIC
===================================================== */

.neutro-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.neutro {
    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 13px;

    padding: 18px;

    text-align: center;
}

.neutro .letter {
    font-size: 20px;

    font-weight: 800;

    color: var(--primary);
}

.neutro .label {
    font-size: 10px;

    color: var(--muted);

    margin: 5px 0 12px;
}

.neutro .number {
    font-size: 25px;

    font-weight: 800;

    color: #1e293b;
}


/* =====================================================
   DISEASE BARS
===================================================== */

.disease-box {
    background: white;

    border: 1px solid var(--border);

    border-radius: 17px;

    padding: 25px;
}

.disease-box h3 {
    font-size: 15px;

    margin-bottom: 22px;
}

.disease-row {
    margin-bottom: 19px;
}

.disease-top {
    display: flex;

    justify-content: space-between;

    margin-bottom: 7px;

    font-size: 11px;

    font-weight: 600;
}

.progress {
    height: 9px;

    background: #eef2f7;

    border-radius: 20px;

    overflow: hidden;
}

.progress-inner {
    height: 100%;

    width: 0;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #0f766e,
            #2dd4bf
        );

    transition:
        width 1s ease;
}


/* =====================================================
   HISTORY
===================================================== */

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 11px;
}

thead {
    background: #f8fafc;
}

th {
    color: #64748b;

    font-weight: 600;

    padding: 13px 10px;

    text-align: center;

    border-bottom: 1px solid var(--border);
}

td {
    padding: 13px 10px;

    text-align: center;

    border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover {
    background: #f8fafc;
}

.badge {
    padding: 5px 9px;

    border-radius: 15px;

    background: #ecfdf5;

    color: #047857;

    font-weight: 600;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 25px 35px;

    border-top: 1px solid var(--border);

    color: #94a3b8;

    font-size: 10px;

    text-align: center;
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width: 1100px) {

    .form-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .result-grid {
        grid-template-columns: 1fr;
    }
}


@media(max-width: 750px) {

    :root {
        --sidebar: 0px;
    }

    .sidebar {
        position: relative;

        width: 100%;

        height: auto;

        padding: 15px;
    }

    .brand {
        padding-bottom: 15px;
    }

    .menu-title,
    .sidebar-bottom {
        display: none;
    }

    .menu {
        flex-direction: row;

        overflow-x: auto;
    }

    .menu a {
        white-space: nowrap;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        padding: 0 18px;
    }

    .content {
        padding: 18px;
    }

    .welcome {
        padding: 25px;
    }

    .welcome h1 {
        font-size: 22px;
    }

    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .neutro-cards {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   PRINT
===================================================== */

@media print {

    .sidebar,
    .topbar,
    .buttons,
    footer {
        display: none !important;
    }

    .main {
        margin: 0;
    }

    body {
        background: white;
    }

    .result-section {
        display: block !important;
    }

}


/* PROFESSIONAL VISUAL LAYER */
.brand-icon svg,
.menu-icon svg,
.stat-icon svg {
    width: 23px;
    height: 23px;
    display: block;
}

.brand-icon svg {
    width: 30px;
    height: 30px;
}


.ai-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
}

.section-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-right: 7px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.stat-icon {
    color: var(--primary);
}

.green-bg { color:#059669; }
.blue-bg { color:#2563eb; }
.orange-bg { color:#d97706; }
.purple-bg { color:#7c3aed; }

.diagnosis-result {
    min-height: 175px;
}

/* =====================================================
   BRAND LOGO STYLES
===================================================== */
.brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.brand-icon img,
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

