/* sonic.css — Styles for ultrasonic verification UI */

/* Sonic Status Indicator */
.sonic-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
    transition: all 0.2s ease;
}

.sonic-status.listening {
    background: var(--amber-s);
    color: var(--amber-t);
    border-left: 4px solid var(--amber);
}

.sonic-status.verified {
    background: var(--teal-s);
    color: var(--teal);
    border-left: 4px solid var(--teal);
}

.sonic-status.failed {
    background: var(--danger-s);
    color: var(--danger-t);
    border-left: 4px solid var(--danger);
}

/* GPS Status Indicator */
.gps-status {
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gps-status.busy {
    background: var(--amber-s);
    color: var(--amber-t);
    border-left: 4px solid var(--amber);
}

.gps-status.ok {
    background: var(--teal-s);
    color: var(--teal);
    border-left: 4px solid var(--teal);
}

.gps-status.error {
    background: var(--danger-s);
    color: var(--danger-t);
    border-left: 4px solid var(--danger);
}

.gps-status.warning {
    background: var(--danger-s);
    color: var(--danger-t);
    border-left: 4px solid var(--danger);
}

/* Sonic Active Badge for Lecturer Cards */
.sonic-active {
    background: var(--teal);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulse 1.5s infinite;
}

.sonic-inactive {
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Microphone permission prompt styling */
.mic-permission-prompt {
    background: var(--surface2);
    border-radius: 12px;
    padding: 16px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid var(--border);
}

.mic-permission-prompt i {
    font-size: 32px;
    color: var(--ug);
    margin-bottom: 10px;
    display: block;
}

/* Sonic wave animation for active broadcast */
@keyframes sonic-wave {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(29, 158, 117, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 158, 117, 0);
    }
}

.sonic-wave-active {
    animation: sonic-wave 1.5s infinite;
    border-radius: 50%;
}

/* Check-in step indicator for sonic */
.step-sonic {
    border-left: 3px solid var(--teal);
    background: var(--teal-s);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sonic-status {
        font-size: 11px;
        padding: 10px 12px;
    }
    
    .gps-status {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .sonic-active, .sonic-inactive {
        font-size: 9px;
        padding: 3px 8px;
    }
}
