body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.tracker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

.auth-card h1 {
    margin-top: 0;
    color: #333;
}

.tracking-view {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

.patient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.patient-header h1 {
    margin: 0 0 10px 0;
}

.heartbeat-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    margin: 20px;
    border-radius: 8px;
    text-align: center;
}

.status-tracker {
    padding: 30px;
}

.status-tracker h2 {
    color: #667eea;
    margin-top: 0;
}

.status-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.progress-timeline {
    position: relative;
    padding-left: 40px;
    margin: 30px 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 10px;
    bottom: -20px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item.complete::before {
    background: #28a745;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.timeline-item.complete .timeline-marker {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.timeline-content p {
    margin: 0;
    color: #999;
    font-size: 0.9em;
}

.timeline-content .notes {
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

.wait-info {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.wait-time {
    display: inline-block;
}

.wait-time h3 {
    font-size: 3em;
    margin: 0;
    color: #667eea;
}

.wait-time p {
    margin: 0;
    color: #666;
}

.patient-actions {
    padding: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.faq-section {
    padding: 30px;
    background: #f8f9fa;
}

.faq-section h3 {
    margin-top: 0;
}

.faq-section details {
    margin-bottom: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}

.faq-section summary {
    font-weight: bold;
    color: #667eea;
}

.faq-section details p {
    margin: 10px 0 0 0;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.tracker-container .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.tracker-container .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
}

.tracker-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

/* ?? Messages from Care Team ?? */
.messages-section {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.messages-section h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.nurse-message {
    background: white;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.nurse-message p {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 1em;
}

.nurse-message small {
    color: #999;
}


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

.tracker-container .btn-secondary {
    background: #6c757d;
    color: white;
    flex: 1;
}

.tracker-container .btn-success {
    background: #28a745;
    color: white;
    flex: 1;
}

.tracker-container .btn-secondary:hover,
.tracker-container .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    text-align: center;
    padding: 100px;
    color: white;
    font-size: 1.5em;
}
