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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

nav {
    display: flex;
    gap: 10px;
}

nav button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

nav button:hover {
    background-color: #e0e0e0;
}

nav button.active {
    background-color: #3498db;
    color: white;
}

main {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 70vh;
}

.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.triage-legend {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.triage-legend h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.triage-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.triage-level {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.level-details {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.level-details strong {
    margin-bottom: 2px;
}

.patients-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.patients-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.patients-table tbody tr:hover {
    background-color: #f9f9f9;
}

.triage-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
}

.refresh-btn {
    align-self: flex-end;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 15px;
}

.refresh-btn:hover {
    background-color: #2980b9;
}

.register-container, .attend-container {
    max-width: 700px;
    margin: 0 auto;
}

.register-container h2, .attend-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    padding: 12px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #219653;
}

.submit-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
    }
    
    .triage-levels {
        flex-direction: column;
    }
    
    .patients-table {
        font-size: 14px;
    }
    
    .patients-table th, .patients-table td {
        padding: 8px;
    }
}

