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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0e27;
    color: #e0e0e0;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Waiting Screen */
.status-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.user-badge {
    background: #1a1f3a;
    border: 2px solid #2d3561;
    border-radius: 12px;
    padding: 16px 32px;
    text-align: center;
    margin-bottom: 40px;
}

.badge-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.badge-id {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
}

.waiting-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.waiting-message {
    font-size: 18px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
    max-width: 300px;
}

.shift-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.shift-message {
    font-size: 18px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.6;
    max-width: 300px;
}

/* Console Header */
.console-header {
    background: #1a1f3a;
    border-bottom: 2px solid #2d3561;
    padding: 16px 20px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge-small {
    background: #0a0e27;
    border: 1px solid #2d3561;
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-label-small {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
}

.badge-id-small {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    font-family: 'Courier New', monospace;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px 8px 20px;
    background: #0a0e27;
    border-top: 1px solid #2d3561;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

.stat-text {
    font-size: 13px;
    font-weight: 700;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 8px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Incident Container */
.incident-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.incident-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2d3561;
}

.incident-label {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ci-value-header {
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    flex: 1;
}

/* Sections */
.description-section,
.resolution-section {
    margin-bottom: 20px;
}

.resolution-section label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    border-left: 4px solid #fbbf24;
}

.description-value {
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Options */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-button {
    background: linear-gradient(135deg, #1a1f3a 0%, #252b4a 100%);
    border: 3px solid #3d4571;
    border-radius: 10px;
    padding: 18px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    text-align: left;
    line-height: 1.6;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.option-button::before {
    content: "▶";
    position: absolute;
    left: 16px;
    color: #60a5fa;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-button:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, #252b4a 0%, #2d3561 100%);
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.option-button:active::before {
    opacity: 1;
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.overlay-content {
    text-align: center;
    padding: 40px;
}

.overlay-icon {
    font-size: 100px;
    margin-bottom: 24px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.overlay-message {
    font-size: 24px;
    font-weight: 600;
    color: #e0e0e0;
}

.overlay-content.success .overlay-message {
    color: #10b981;
}

.overlay-content.error .overlay-message {
    color: #ef4444;
}

.sub-message {
    font-size: 16px;
    color: #9ca3af;
    margin-top: 12px;
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .console-title {
        font-size: 14px;
    }

    .option-button {
        font-size: 13px;
        padding: 14px;
    }

    .overlay-icon {
        font-size: 80px;
    }

    .overlay-message {
        font-size: 20px;
    }
}
