:root {
    --blue-dark: #123e75;
    --blue-medium: #1f61b0;
    --blue-light: #e6f0fa;
    --green-dark: #1e7145;
    --green-medium: #28a745;
    --green-light: #e8f5e9;
    --orange: #f39c12;
    --orange-light: #fdf5e6;
    --red: #d32f2f;
    --red-light: #ffebee;
    --purple: #8e44ad;
    --gray-light: #f5f5f5;
    --gray-border: #ccc;
    --text-main: #333;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    padding: 20px;
    background-color: #f0f4f8;
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

/* Typography */
.text-white { color: #fff; }
.text-blue { color: var(--blue-dark); }
.text-green { color: var(--green-dark); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.fw-bold { font-weight: bold; }

/* Utilities */
.m-0 { margin: 0; }
.mt-xs { margin-top: 5px; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 20px; }
.mb-sm { margin-bottom: 10px; }
.pb-xs { padding-bottom: 5px; }
.pb-sm { padding-bottom: 10px; }
.pt-xs { padding-top: 5px; }
.pt-sm { padding-top: 10px; }
.p-xs { padding: 5px; }
.p-sm { padding: 10px; }
.p-md { padding: 15px; }
.ml-auto { margin-left: auto; }
.mr-sm { margin-right: 10px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.space-between { justify-content: space-between; }
.float-right { float: right; }

.bg-blue { background-color: var(--blue-dark); }
.bg-blue-light { background-color: var(--blue-light); }
.bg-green { background-color: var(--green-dark); }
.bg-green-light { background-color: var(--green-light); }
.bg-orange { background-color: var(--orange); }
.bg-orange-light { background-color: var(--orange-light); }
.bg-red { background-color: var(--red); }
.bg-red-light { background-color: var(--red-light); }
.bg-purple { background-color: var(--purple); }

.border-blue { border: 2px solid var(--blue-dark); }
.border-green { border: 2px solid var(--green-dark); }
.border-orange { border: 2px solid var(--orange); }
.border-red { border: 2px solid var(--red); }
.border-purple { border: 2px solid var(--purple); }
.border-bottom { border-bottom: 1px solid var(--gray-border); }

/* Layout Grid */
.grid-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.grid-row-7-3 {
    display: grid;
    grid-template-columns: 7fr 3fr;
}
.grid-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.grid-2-col {
    display: grid;
    grid-template-columns: auto auto;
    row-gap: 5px;
    column-gap: 10px;
}
.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 400px;
    text-align: center;
    border-top: 5px solid var(--blue-medium);
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--blue-dark);
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}
.btn-primary {
    background: var(--blue-medium);
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-primary:hover {
    background: var(--blue-dark);
}

/* Dashboard Container */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

.dashboard-card {
    background: #fff;
    width: 100%;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #eaeaea;
}

.card-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-dark);
    color: #fff;
    padding: 5px 30px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--gray-border);
    padding-bottom: 15px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 33%;
}
.title-area {
    text-align: center;
    width: 33%;
}
.qr-area {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.badge-green, .badge-low {
    background: var(--green-medium);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-orange, .badge-moderate {
    background: var(--orange);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-red, .badge-high {
    background: var(--red);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-pending {
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-unavailable {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Section Box */
.section-box {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.section-title {
    padding: 8px 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Form Grid */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}
.form-row {
    display: flex;
}
.form-row span:first-child {
    width: 150px;
    font-weight: 500;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    background: var(--blue-dark);
    color: #fff;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}
.data-table th:first-child { text-align: left; }
.data-table td {
    padding: 8px;
    border: 1px solid #ddd;
}
.icon-cell {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 5px;
}

/* Awareness Grid */
.awareness-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    text-align: center;
}
.awareness-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tick-box {
    border: 1px solid var(--gray-border);
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notes & Signatures */
.notes-box {
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 10px;
    background: #fafafa;
}

/* Footer */
.card-footer {
    padding: 10px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
}

/* Custom Bullets */
.custom-bullets {
    padding-left: 20px;
    margin: 5px 0;
}
.custom-bullets li {
    margin-bottom: 5px;
}

/* Icon List */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.icon-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

/* Lifestyle Grid */
.lifestyle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.lifestyle-card {
    padding: 0 15px;
}
.border-left-dashed {
    border-left: 1px dashed var(--gray-border);
}
.lifestyle-card h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

/* Info Cards Bottom */
.info-card {
    border-radius: 8px;
    overflow: hidden;
}
.info-card-title {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

/* NEW GRAPHICAL SECTIONS */
.awareness-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--green);
    border-radius: 0 0 5px 5px;
}
.awareness-item {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
}
.awareness-item i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}
.tick-green { color: #28a745; font-size: 1.2rem; margin-top: 5px; }

.signature-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    position: relative;
    background: #fafafa;
}
.signature-box img {
    height: 50px;
    margin-bottom: 5px;
}
.signature-line {
    border-bottom: 1px solid #000;
    margin: 10px 0;
}
.signature-details {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.5;
}

.quick-guides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.border-red { border: 1px solid #d32f2f; }
.bg-red { background-color: #d32f2f; }
.bg-red-light { background-color: #ffebee; }
.text-red { color: #d32f2f; }

.border-dark-blue { border: 1px solid #0d47a1; }
.bg-dark-blue { background-color: #0d47a1; }
.bg-dark-blue-light { background-color: #e3f2fd; }
.text-dark-blue { color: #0d47a1; }

/* ADMIN DASHBOARD SPECIFIC */
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.admin-wrapper {
    background: #f0f2f5;
    min-height: 100vh;
}
.admin-header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media print {
    body { background: #fff; padding: 0; }
    .login-overlay { display: none !important; }
    .dashboard-wrapper { display: block !important; }
    .dashboard-card { box-shadow: none; border: none; margin-bottom: 50px; break-inside: avoid;}
}
