:root{
    --primary:#3B82F6;
    --secondary:#8B5CF6;
    --success:#10B981;
    --danger:#EF4444;

    --bg:#0B1120;
    --sidebar:#111827;
    --card:#111827;
    --card-light:#1F2937;

    --text:#F8FAFC;
    --muted:#CBD5E1;
    --border:rgba(255,255,255,.08);
}

/* =========================
   GLOBAL
========================= */

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}

h1,h2,h3,h4,h5,h6{
    color:var(--text);
    font-weight:700;
}

p{
    color:var(--muted);
}

hr{
    border-color:rgba(255,255,255,.08);
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    background:var(--sidebar);
    padding:40px 35px;
    min-height:100vh;
    border-right:1px solid var(--border);
}

.logo-card{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:25px;
}

.logo-img{
    width:70px;
    height:70px;
    object-fit:contain;
    border-radius:12px;
    background:white;
    padding:5px;
}

.brand-text h3{
    margin:0;
    font-size:1.3rem;
}

.brand-text span{
    color:var(--muted);
    font-size:.9rem;
}

.about-text{
    color:var(--muted);
    font-size:15px;
    line-height:1.8;
}

.section-list{
    padding-left:20px;
}

.section-list li{
    margin-bottom:10px;
    color:var(--text);
}

.info-card{
    background:rgba(59,130,246,.08);
    border:1px solid rgba(59,130,246,.15);
    border-radius:14px;
    padding:18px;
}

.info-card h6{
    margin-bottom:8px;
}

.info-card p{
    margin:0;
    font-size:.9rem;
}

/* =========================
   MAIN CONTENT
========================= */

.main-content{
    padding:50px;
}

.hero{
    margin-bottom:40px;
}

.hero-title{
    font-size:3.3rem;
    font-weight:800;
    line-height:1.1;
    letter-spacing:-1px;
    margin-bottom:15px;
}

.hero-subtitle{
    font-size:1.1rem;
    color:var(--muted);
    max-width:850px;
    line-height:1.8;
}

/* =========================
   GLASS CARD
========================= */

.glass-card{
    background:rgba(17,24,39,.85);
    border:1px solid var(--border);
    border-radius:24px;
    backdrop-filter:blur(18px);
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.card-header{
    background:transparent;
    border-bottom:1px solid var(--border);
}

.hero {
    margin-bottom: 12px;   /* default is usually too big */
}

.card {
    margin-bottom: 12px;   /* reduces gaps between sections */
}
.card {
    margin-bottom: 12px;   /* reduces gaps between sections */
}

/* =========================
   INPUT
========================= */

.section-title{
    margin-bottom:20px;
}

.instruction-box{
    background:#0F172A;
    border:1px solid rgba(255,255,255,.05);
    border-radius:14px;
    padding:16px;
    margin-bottom:20px;
}

.instruction-box p{
    margin:8px 0 0;
}

.abstract-box {
    background:#0F172A !important;
    color:var(--text) !important;

    border:1px solid #334155 !important;
    border-radius:16px;

    padding:25px;
    font-size:16px;
    line-height:1.8;

    resize:vertical;

    height: 240px;   /* 👈 add this */
}

/* =========================
   BUTTON
========================= */

.analyze-btn{
    width:100%;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    border:none;
    border-radius:14px;

    height:60px;

    color:white;
    font-size:18px;
    font-weight:600;

    transition:.3s;
}

.analyze-btn:hover{
    transform:translateY(-2px);
    opacity:.95;
}

/* =========================
   SUMMARY
========================= */

.results-header{
    margin-top:35px;
    margin-bottom:25px;
}

.results-header h2{
    margin-bottom:8px;
}

.results-header p{
    margin:0;
}

/* =========================
   METRICS
========================= */

.metric-card{
    background:var(--card);
    border:1px solid var(--border);

    border-radius:20px;
    padding:25px;
    height:100%;
}

.metric-card h5{
    color:var(--muted);
    font-size:.8rem;
    letter-spacing:1px;
    text-transform:uppercase;
}

.metric-card h2{
    font-size:2.4rem;
    margin-top:10px;
    color:#60A5FA;
}

/* =========================
   DISTRIBUTION
========================= */

.distribution-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:12px;
    margin-top:15px;
}

.distribution-card{
    background:var(--card-light);
    border-radius:14px;
    padding:15px;
    text-align:center;
}

.distribution-card h4{
    margin:0;
    color:#60A5FA;
}

.distribution-card span{
    color:var(--muted);
    font-size:.85rem;
}

/* =========================
   RESULTS
========================= */

.prediction-row{
    background:var(--card-light);

    border-radius:16px;

    padding:18px;
    margin-bottom:16px;

    transition:.25s;
}

.prediction-row:hover{
    transform:translateY(-2px);
    background:#273548;
}

.prediction-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.label-badge{
    color:white;
    font-size:.8rem;
    font-weight:700;

    padding:8px 16px;
    border-radius:999px;
}

.sentence{
    line-height:1.8;
    color:var(--text);
}

.confidence{
    color:var(--success);
    font-weight:700;
}

.progress{
    height:8px;
    background:#334155;
    border-radius:999px;
}

.progress-bar{
    background:var(--success);
}

/* =========================
   FOOTER
========================= */

.footer{
    margin-top:40px;
    text-align:center;
    padding:20px;
}

.footer p{
    color:#94A3B8;
    font-size:.9rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 992px){

    .sidebar{
        min-height:auto;
    }

    .main-content{
        padding:25px;
    }

    .hero-title{
        font-size:2.3rem;
    }

    .hero-subtitle{
        font-size:1rem;
    }
}

hr {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 12px 0;
    width: 90%;
}

.instruction-box {
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.3;
}

.abstract-box::placeholder {
    color: #ffffff !important;
    opacity: 0.7;  /* keeps it slightly subtle but visible */
}