:root {
    --primary-color: #007bff;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

h1, h2, h3 {
    margin-top: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-indicator {
    padding: 5px 10px;
    border-radius: 12px;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
}

.status-indicator.connected {
    background-color: #d4edda;
    color: #155724;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 4px;
}

.info-item span {
    font-weight: 500;
}

.full-width {
    grid-column: span 2;
}

.control-group {
    text-align: center;
}

.hidden {
    display: none !important;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    transition: background-color 0.2s;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.danger-btn {
    background-color: var(--danger-color);
    color: white;
}

.secondary-btn {
    background-color: #e2e6ea;
    color: #333;
}

.timer-display {
    font-size: 3em;
    font-family: monospace;
    margin: 20px 0;
}

.surveys-container {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
}

.survey-item {
    text-align: center;
}

.qr-container {
    margin: 20px 0;
}

/* Patient View Specifics */
.patient-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

#patient-header {
    /* Let grid layout handle it */
    position: relative; 
    width: 100%;
    background: #000; /* Solid back not rgba so text is readable */
    color: white;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    font-family: monospace;
}

#monitor-container {
    width: 100%;
    height: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
}

.placeholder-message {
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 2em;
}
