/* TracHeal — Shared Design System */
/* Cache Hit Dubai | HSIL Hackathon 2026 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #1e293b;
}

/* ── Navigation ── */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand span {
    font-weight: 400;
    font-size: 13px;
    -webkit-text-fill-color: #94a3b8;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 6px;
}

.nav-links a {
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ── Layout ── */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.85;
}

/* ── Cards ── */
.card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 6px;
}

.card h3 {
    font-size: 17px;
    color: #334155;
    margin-bottom: 8px;
}

.card p {
    color: #475569;
    line-height: 1.65;
    font-size: 15px;
}

.card-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ── Grid layouts ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Metric / KPI cards ── */
.metric {
    text-align: center;
    padding: 20px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Phase / timeline items ── */
.phase {
    border-left: 4px solid #667eea;
    padding-left: 24px;
    margin-bottom: 32px;
    position: relative;
}

.phase::before {
    content: '';
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: 4px;
}

.phase-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #667eea;
    margin-bottom: 4px;
}

.phase h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.phase p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* ── Tags ── */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 6px;
}

.tag-purple {
    background: #ede9fe;
    color: #6d28d9;
}

.tag-green {
    background: #dcfce7;
    color: #15803d;
}

.tag-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag-amber {
    background: #fef3c7;
    color: #b45309;
}

.tag-red {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Stakeholder nodes ── */
.stakeholder-node {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.stakeholder-node:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.stakeholder-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stakeholder-node h4 {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 6px;
}

.stakeholder-node p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.stakeholder-role {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

/* ── Tables ── */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
}

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ── Alert / highlight boxes ── */
.alert-box {
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
}

.alert-green {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.alert-blue {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.alert-amber {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}

.alert-red {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.alert-purple {
    background: #faf5ff;
    border-left: 4px solid #a855f7;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* ── Dividers ── */
.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
}

/* ── Footer ── */
.page-footer {
    text-align: center;
    padding: 32px 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .card {
        padding: 20px;
    }
}
