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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff7f9;
    color: #222;
    line-height: 1.6;
}

.navbar {
    background: white;
    border-bottom: 1px solid #f0dce2;
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c9365c;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #c9365c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

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

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
}

.nav-links a:hover {
    color: #c9365c;
}

.hero {
    padding: 80px 6%;
    background: linear-gradient(135deg, #fff7f9, #fde8ee);
}

.hero-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: #f8dce5;
    color: #a52c4c;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #c9365c;
}

.hero p {
    font-size: 19px;
    color: #666;
    max-width: 700px;
    margin: auto;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #c9365c;
    color: white;
}

.btn-primary:hover {
    background: #a92d4d;
}

.btn-secondary {
    background: white;
    color: #c9365c;
    border: 1px solid #e5b8c5;
}

.page-container,
.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 25px;
}

.form-card,
.current-patient-card,
.queue-section,
.patient-profile-card,
.information-card,
.feature-card {
    background: white;
    border: 1px solid #f0dce2;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(120, 40, 65, 0.06);
}

.form-header,
.dashboard-header {
    margin-bottom: 25px;
}

.form-header h1,
.dashboard-header h1 {
    color: #333;
    margin-bottom: 8px;
}

.form-header p,
.dashboard-header p {
    color: #777;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px;
    border: 1px solid #dfcbd1;
    border-radius: 9px;
    font-size: 15px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #c9365c;
    box-shadow: 0 0 0 3px #fde8ee;
}

.safety-box {
    background: #fff5f7;
    border-left: 5px solid #c9365c;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.features {
    padding: 60px 6%;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 32px;
}

.feature-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card h3 {
    margin: 15px 0 8px;
    color: #333;
}

.feature-card p {
    color: #666;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.dashboard-status {
    background: #e8f8ef;
    color: #21864b;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: bold;
}

.consultation-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.detail-card {
    background: #fff7f9;
    padding: 18px;
    border-radius: 12px;
}

.detail-card strong {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

.queue-section {
    margin-top: 25px;
    overflow-x: auto;
}

.patient-table {
    width: 100%;
    border-collapse: collapse;
}

.patient-table th,
.patient-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.patient-table th {
    background: #fff5f7;
    color: #555;
}

.priority-badge,
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.priority-badge {
    background: #fde8ee;
    color: #b52e50;
}

.status-badge {
    background: #edf7f0;
    color: #287744;
}

.view-btn {
    color: #c9365c;
    text-decoration: none;
    font-weight: bold;
}

.patient-profile-card {
    margin-bottom: 25px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.symptoms-box,
.ai-summary-box,
.red-flags,
.no-red-flags {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
}

.symptoms-box {
    background: #f8f8f8;
}

.ai-summary-box {
    background: #fff5f7;
    border-left: 5px solid #c9365c;
}

.red-flags {
    background: #fff0f0;
    border-left: 5px solid #d33;
}

.no-red-flags {
    background: #edf9f1;
    border-left: 5px solid #38a169;
}

footer {
    margin-top: 60px;
    padding: 30px;
    text-align: center;
    background: #2b2024;
    color: #ddd;
}

@media (max-width: 800px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

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

    .hero h1 {
        font-size: 38px;
    }

    .form-grid,
    .feature-grid,
    .details-grid,
    .consultation-info {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}