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

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #c0392b;
    --info-color: #3498db;
    --dark-bg: #1a1a2e;
    --card-bg: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #2c3e50;
    --hover-bg: #0f3460;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
.header {
    background: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    animation: pulse 2s infinite;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.operator-info, .time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 380px 1fr 350px;
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100vh - 80px);
}

.left-panel, .middle-panel, .right-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.card-header {
    background: linear-gradient(135deg, rgba(231,76,60,0.1), rgba(52,152,219,0.1));
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Priority Buttons */
.priority-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.priority-btn {
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.priority-btn.critical {
    background: rgba(192,57,43,0.2);
    color: #e74c3c;
    border-color: #c0392b;
}

.priority-btn.high {
    background: rgba(243,156,18,0.2);
    color: #f39c12;
    border-color: #f39c12;
}

.priority-btn.medium {
    background: rgba(52,152,219,0.2);
    color: #3498db;
    border-color: #3498db;
}

.priority-btn.low {
    background: rgba(39,174,96,0.2);
    color: #27ae60;
    border-color: #27ae60;
}

.priority-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.priority-btn.active {
    transform: scale(1.05);
    box-shadow: 0 0 20px currentColor;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--danger-color));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #922b21);
    color: white;
}

.btn-record {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-stop {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

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

/* Recording Controls */
.recording-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.recording-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #95a5a6;
    position: relative;
}

.pulse.active {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231,76,60,0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231,76,60,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231,76,60,0);
    }
}

.call-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Audio Visualizer */
.audio-visualizer {
    margin-top: 1rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 0.5rem;
    height: 80px;
}

#audio-canvas {
    width: 100%;
    height: 100%;
}

/* Voice Card - Ses Seviyesi Kartı */
.voice-card {
    margin-bottom: 1rem;
}

/* Voice Visualizer - Ses Titreşim Göstergesi */
.voice-visualizer {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    border-radius: 12px;
    border: 1px solid rgba(231,76,60,0.2);
    position: relative;
    overflow: hidden;
}

#voice-canvas {
    width: 100%;
    height: 120px;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    display: block;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.voice-level-indicator {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
}

.voice-level-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg,
        #00ff00 0%,
        #ffff00 50%,
        #ff0000 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.voice-level-bar {
    --level-width: 0%;
}

.voice-level-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--level-width, 0%);
    background: rgba(255,255,255,0.8);
    transition: width 0.1s ease;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.voice-level-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

/* Animasyon efektleri */
.voice-visualizer.active {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(231,76,60,0.2);
    }
    50% {
        border-color: rgba(231,76,60,0.6);
    }
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-btn {
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.quick-btn i {
    font-size: 1.5rem;
}

.quick-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.quick-btn.ambulance:hover {
    background: rgba(231,76,60,0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quick-btn.fire:hover {
    background: rgba(243,156,18,0.2);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.quick-btn.police:hover {
    background: rgba(52,152,219,0.2);
    border-color: var(--info-color);
    color: var(--info-color);
}

.quick-btn.helicopter:hover {
    background: rgba(155,89,182,0.2);
    border-color: #9b59b6;
    color: #9b59b6;
}

/* Transcription Container */
.transcription-card {
    height: calc(100vh - 400px);
}

.transcription-container {
    height: 400px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
}

.transcription-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.transcription-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.transcription-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transcription-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.transcription-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.transcription-confidence {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    background: rgba(39,174,96,0.2);
    color: var(--success-color);
    border-radius: 4px;
    margin-top: 0.5rem;
}

.transcription-status {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.status-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Notes Area */
.notes-area {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.stat-icon.blue {
    background: rgba(52,152,219,0.2);
    color: #3498db;
}

.stat-icon.green {
    background: rgba(39,174,96,0.2);
    color: #27ae60;
}

.stat-icon.orange {
    background: rgba(243,156,18,0.2);
    color: #f39c12;
}

.stat-icon.red {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}

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

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Recent Calls List */
.recent-calls-list {
    max-height: 300px;
    overflow-y: auto;
}

.call-item {
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.call-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.call-item.critical {
    border-left-color: var(--danger-color);
}

.call-item.high {
    border-left-color: var(--warning-color);
}

.call-item.medium {
    border-left-color: var(--info-color);
}

.call-item.low {
    border-left-color: var(--success-color);
}

.call-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.call-number {
    font-weight: 600;
    color: var(--text-primary);
}

.call-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.call-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.call-type {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(52,152,219,0.2);
    color: var(--info-color);
    border-radius: 4px;
    margin-top: 0.25rem;
}

/* Contact List */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.contact-item i {
    width: 30px;
    color: var(--primary-color);
}

.contact-item span {
    flex: 1;
    font-size: 0.875rem;
}

.contact-item a {
    color: var(--info-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(52,152,219,0.2);
    border-radius: 4px;
    transition: all 0.3s;
}

.contact-item a:hover {
    background: rgba(52,152,219,0.3);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideIn 0.3s;
    border-left: 4px solid var(--primary-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.125rem;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 1600px) {
    .main-content {
        grid-template-columns: 350px 1fr 320px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }

    .left-panel, .middle-panel, .right-panel {
        max-height: none;
    }

    .transcription-card {
        height: auto;
    }

    .transcription-container {
        height: 300px;
    }
}