/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213a;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #2a2a3e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
    animation: fadeIn 0.5s ease;
}

.walkie-talkie-icon {
    font-size: 4rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--highlight-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.loading-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--highlight-color), #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

/* Main App */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-app.hidden {
    display: none;
}

/* Header */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left .app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-logo i {
    font-size: 1.8rem;
    color: var(--highlight-color);
}

.app-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-center .connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s ease;
}

.status-indicator.connected {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Panels */
.left-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Styles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--highlight-color);
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--highlight-color);
}

/* Room Section */
.room-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.room-controls {
    margin-bottom: 2rem;
}

.room-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.room-input-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.room-input-group input:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.room-input-group input::placeholder {
    color: var(--text-muted);
}

.current-room-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.current-room-info strong {
    color: var(--highlight-color);
}

/* Available Rooms */
.available-rooms {
    margin-top: 1.5rem;
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.room-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-item:hover {
    background: var(--card-hover);
    border-color: var(--highlight-color);
    transform: translateY(-2px);
}

.room-info {
    flex: 1;
}

.room-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.room-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-participants {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.room-participants i {
    color: var(--highlight-color);
}

.no-rooms {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-rooms i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Participants Section */
.participants-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.participant-count {
    background: var(--highlight-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.participant {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.participant:hover {
    background: var(--card-hover);
}

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--highlight-color), #ff6b9d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.participant-info {
    flex: 1;
}

.participant-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.participant-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.participant-status.online {
    color: var(--success-color);
}

.participant-status.online::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.no-participants {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.no-participants i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Controls Section */
.controls-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.talk-controls {
    text-align: center;
    margin-bottom: 2rem;
}

.talk-button {
    position: relative;
    width: 120px;
    height: 120px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight-color), #ff6b9d);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow);
}

.talk-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(233, 69, 96, 0.4);
}

.talk-button:active:not(:disabled) {
    transform: scale(0.95);
}

.talk-button.recording {
    background: linear-gradient(135deg, var(--error-color), #ff4757);
    animation: pulse 1s infinite;
}

.talk-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.button-inner i {
    font-size: 1.5rem;
}

.button-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.button-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.talk-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Volume Control */
.volume-control {
    margin-bottom: 2rem;
}

.volume-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.volume-header i {
    color: var(--highlight-color);
}

.volume-slider-container {
    position: relative;
}

.volume-slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--highlight-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.volume-slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--highlight-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-light);
}

.volume-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Communication Status */
.communication-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-item i {
    color: var(--highlight-color);
    width: 16px;
}

.status-item strong {
    color: var(--text-primary);
}

/* Real-time Info Section */
.realtime-info-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 0.5rem;
}

.info-content h3 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Talking Indicator */
.talking-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--highlight-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

.talking-indicator:not(.hidden) {
    display: flex;
    align-items: center;
}

.talking-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.talking-content i {
    animation: pulse 1s infinite;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--highlight-color), #ff6b9d);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d6336c, #e94560);
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.btn-install {
    background: var(--success-color);
    color: white;
    border: none;
}

.btn-install:hover {
    background: #45a049;
}

.btn-settings {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: var(--highlight-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-group label i {
    color: var(--highlight-color);
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
}

.setting-group select option {
    background: var(--secondary-color);
    color: var(--text-primary);
}

/* Name Input Modal */
.name-input-modal .name-input-container {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow);
}

.name-input-header {
    margin-bottom: 1rem;
}

.name-input-header i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.name-input-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.name-input-container p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.name-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name-input-group input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
}

.name-input-group input:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Notification */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    z-index: 3000;
    transform: translateX(100%);
    transition: var(--transition);
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification.info {
    border-left: 4px solid var(--highlight-color);
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Mobile Talk Button - Fixed at top */
.mobile-talk-button {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 500;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.mobile-talk-button .talk-controls {
    margin-bottom: 0;
}

.mobile-talk-button .talk-button {
    width: 100px;
    height: 100px;
}

.mobile-talk-button .talk-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        position: relative;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
        gap: 1rem;
        margin-top: 180px; /* Space for mobile talk button */
    }
    
    /* Show mobile talk button and hide desktop one */
    .mobile-talk-button {
        display: block;
        top: 120px; /* Position after header */
    }
    
    .controls-section .talk-controls {
        display: none;
    }
    
    /* Reorganize sections for mobile */
    .left-panel {
        order: 1;
    }
    
    .right-panel {
        order: 2;
    }
    
    .controls-section {
        order: 1; /* Move controls to top of right panel */
    }
    
    .realtime-info-section {
        order: 2;
    }
    
    .room-input-group {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .info-card {
        padding: 0.75rem;
    }
    
    .notification {
        top: 200px; /* Below mobile talk button */
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    /* Adjust talking indicator position */
    .talking-indicator {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        border-radius: var(--border-radius-small);
    }
}

@media (max-width: 480px) {
    .room-section,
    .participants-section,
    .controls-section,
    .realtime-info-section {
        padding: 1rem;
    }
    
    .mobile-talk-button {
        padding: 0.75rem;
        top: 100px; /* Closer to header on small screens */
    }
    
    .mobile-talk-button .talk-button {
        width: 80px;
        height: 80px;
    }
    
    .button-inner i {
        font-size: 1.2rem;
    }
    
    .button-text {
        font-size: 0.7rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin-top: 160px; /* Adjust for smaller talk button */
    }
    
    .notification {
        top: 180px;
    }
}

/* PWA Standalone Mode */
@media (display-mode: standalone) {
    .header {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }
    
    .main-content {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    
    .mobile-talk-button {
        top: calc(120px + env(safe-area-inset-top));
    }
    
    @media (max-width: 480px) {
        .mobile-talk-button {
            top: calc(100px + env(safe-area-inset-top));
        }
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #0a0a0a;
        --secondary-color: #1a1a1a;
        --border-color: #333333;
    }
}

/* Hidden utility class */
.hidden {
    display: none !important;
} 