/*
==================================================
DRUGINITY UI21
Phase 1 Architecture
External stylesheet
==================================================
*/

:root{
    --ui21-loaded:1;
}

/* Nothing else yet.
   Existing website should continue to look the same.
*/

/* ==================================================
   DRUGINITY UI21
   Phase 1 – Design Foundation
================================================== */

:root{

    --ui-bg:#f4f7fb;
    --ui-surface:#ffffff;
    --ui-surface-2:#f8fafc;

    --ui-primary:#2563eb;
    --ui-primary-dark:#1d4ed8;

    --ui-text:#1e293b;
    --ui-muted:#64748b;

    --ui-border:#e2e8f0;

    --ui-radius:18px;

    --ui-shadow:
        0 10px 35px rgba(15,23,42,.08);

    --ui-transition:.25s ease;
}

body{

    color:var(--ui-text);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height:1.6;
}

/* Smooth transitions */

button,
a,
input,
.card{

    transition:all var(--ui-transition);
}

/* Generic cards */

.card{

    background:var(--ui-surface) !important;

    border:1px solid var(--ui-border) !important;

    border-radius:var(--ui-radius) !important;

    box-shadow:var(--ui-shadow) !important;
}

/* Generic buttons */

button,
.btn,
input[type=submit]{

    border-radius:12px !important;

    font-weight:600 !important;
}

/* Search fields */

input[type=text],
input[type=search],
select,
textarea{

    border-radius:12px !important;

    border:1px solid var(--ui-border) !important;
}

/* Hover */

.card:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 40px rgba(15,23,42,.12) !important;
}


/* DRUGINITY — Drug Interaction page dark theme fix */
body:has(select[name="drug1"]) select,
body:has(select[name="drug2"]) select,
body:has(select[name="drug1"]) select option,
body:has(select[name="drug2"]) select option {
    background-color: #0b1220 !important;
    color: #e2e8f0 !important;
}

body:has(select[name="drug1"]) select,
body:has(select[name="drug2"]) select {
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    border-radius: 10px !important;
}

body:has(select[name="drug1"]) select:focus,
body:has(select[name="drug2"]) select:focus {
    outline: 2px solid rgba(56, 189, 248, 0.4) !important;
    outline-offset: 2px;
}

