body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

header {
    background-color: #005a87; /* A calming blue */
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
}

nav button {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border: 1px solid white;
    background-color: transparent;
    color: white;
    border-radius: 4px;
}

nav button.active {
    background-color: white;
    color: #005a87;
    font-weight: bold;
}

main {
    padding: 1rem;
    max-width: 900px;
    margin: 1rem auto;
}

.view {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

.active-view {
    display: block;
}

/* Kiosk Specific Styles */
#kiosk-view {
    font-size: 1.2em; /* Larger base font for kiosk */
}

#kiosk-view h2, #kiosk-view h3, #kiosk-view h4 {
    color: #005a87;
}

#kiosk-view button,
#kiosk-view select {
    font-size: 1em; /* Inherit larger base font */
    padding: 0.8rem 1.2rem;
    margin: 0.5rem;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #e9e9e9;
}

#kiosk-view button:hover {
    background-color: #dcdcdc;
}

#kiosk-view select {
    min-width: 200px;
}

.kiosk-lang-btn {
    background-color: #f0f0f0;
    border: 2px solid #007bff;
}

/* Language Grid Styles */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.language-grid .kiosk-lang-btn {
    margin: 0;
    font-size: 1em;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

.language-grid .kiosk-lang-btn:hover {
    transform: scale(1.05);
    background-color: #e0f0ff;
    border-color: #0056b3;
}

.voice-guide {
    background-color: #eef7ff;
    border-left: 5px solid #007bff;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    font-size: 1.1em;
}

.large-text {
    font-size: 1.3em; /* Even larger for main guide */
}

.card-scanner-area {
    border: 2px dashed #ccc;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.ticket-visual {
    border: 1px solid #333;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #fffacd; /* Light yellow like a ticket */
}

#kiosk-help-btn {
    background-color: #dc3545;
    color: white;
    border: none;
}

/* Caregiver App Specific Styles */
#caregiver-view {
    font-size: 1em;
}

#caregiver-view h2 {
    color: #28a745; /* Green theme for caregiver app */
}

.caregiver-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

#caregiver-view label {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

#caregiver-view input[type="number"],
#caregiver-view select {
    padding: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
}

#caregiver-view button {
    padding: 0.6rem 1rem;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
}

#caregiver-view button:hover {
    background-color: #218838;
}

#travel-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

#travel-history-table th,
#travel-history-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

#travel-history-table th {
    background-color: #f2f2f2;
}

.alert {
    color: #dc3545;
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* General Message Styles */
.message {
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    background-color: #d4edda; /* Green for success */
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .language-grid .kiosk-lang-btn {
        font-size: 0.9em;
        padding: 0.6rem;
    }
    
    #kiosk-view select {
        min-width: 150px;
    }
    
    .caregiver-section {
        padding: 0.8rem;
    }
    
    #caregiver-view input[type="number"],
    #caregiver-view select {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    header {
        padding: 0.8rem 0.5rem;
    }
    
    nav button {
        margin: 0.3rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.9em;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    #kiosk-view button,
    #kiosk-view select {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .card-scanner-area {
        padding: 1rem;
    }
    
    #travel-history-table {
        font-size: 0.85em;
    }
    
    #travel-history-table th,
    #travel-history-table td {
        padding: 0.3rem;
    }
}

/* Voice Command Indicator */
.voice-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0.5;
    transition: opacity 0.3s, background-color 0.3s;
}

.voice-indicator.active {
    background-color: rgba(26, 188, 156, 0.9);
    opacity: 1;
}

/* Add pulsating animation when active */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.voice-indicator.active {
    animation: pulse 1.5s infinite;
}

/* Voice Command Controls */
.voice-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #005a87;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

.voice-toggle:hover {
    background-color: #003d5a;
}

.voice-toggle:disabled {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

#voice-commands-help {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 999;
}

#voice-commands-help h4 {
    margin-top: 0;
    color: #005a87;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#voice-commands-help ul {
    padding-left: 20px;
}

#voice-commands-help li {
    margin-bottom: 8px;
    font-size: 14px;
}

#close-voice-help {
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 10px;
    cursor: pointer;
}

#close-voice-help:hover {
    background-color: #e0e0e0;
}

/* Voice indicator error state */
.voice-indicator.error {
    background-color: #dc3545; /* Red background for error */
    opacity: 1;
    animation: none; /* Stop pulsing on error */
}

/* Voice Command Controls */
.voice-toggle {
    /* ... existing styles ... */
}

/* ... other voice toggle styles ... */

.show-voice-help-btn {
    position: fixed;
    bottom: 25px; /* Align vertically with main toggle */
    right: 200px; /* Position it to the left of the main toggle */
    background-color: #6c757d; /* Grey color */
    color: white;
    padding: 0;
    width: 40px; /* Make it round */
    height: 40px;
    border-radius: 50%; /* Make it round */
    border: none;
    font-size: 20px; /* Adjust icon size */
    line-height: 40px; /* Center icon vertically */
    text-align: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.show-voice-help-btn:hover {
    background-color: #5a6268;
}

/* ... rest of styles ... */

/* Media query adjustments for help button */
@media (max-width: 768px) {
    /* ... existing responsive styles ... */
    
    .show-voice-help-btn {
        position: static;
        margin: 5px 0 5px auto; /* Align to right on small screens */
        display: block;
    }
} 