/* Variables / Theme Setup */
:root {
    --bg-color: #f3f6f4;
    --card-bg: rgba(255, 255, 255, 0.82);
    --border-color: rgba(14, 109, 56, 0.12);
    --border-focus: rgba(14, 109, 56, 0.4);
    --primary: #0e6d38; /* Verde Oficial IMCOPA */
    --primary-hover: #0a4f28;
    --text-main: #1f2937; /* Slate 800 para alto contraste */
    --text-muted: #6b7280; /* Slate 500 */
    --success: #10b981;
    --danger: #ef4444;
    --glow-shadow: 0 0 20px rgba(14, 109, 56, 0.12);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imcopa-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 420px;
    opacity: 0.10; /* Marca d'água sutil */
    z-index: -1;
    mix-blend-mode: multiply; /* Torna o fundo branco do logo transparente e o mescla com o degradê */
    pointer-events: none;
}

/* Background Aesthetics */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(14, 109, 56, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(14, 109, 56, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(14, 109, 56, 0.02) 1px, transparent 1px);
    z-index: -3;
}

/* Decorative Road Lines Background */
.road-decor {
    position: fixed;
    bottom: 5vh;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: -1;
}

.road-decor .line {
    width: 120px;
    height: 6px;
    background-color: rgba(14, 109, 56, 0.08);
    border-radius: 4px;
    animation: dashMove 5s linear infinite;
}

@keyframes dashMove {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100vw); }
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 10;
}

/* Glassmorphism Auth Card */
.auth-card, .dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.auth-card:hover, .dashboard-card:hover {
    border-color: rgba(14, 109, 56, 0.25);
    box-shadow: var(--glass-shadow), 0 0 40px rgba(14, 109, 56, 0.08);
}

/* Brand Header Logo styling */
.brand-logo-container {
    max-width: 200px;
    margin: 0 auto 20px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(14, 109, 56, 0.08);
}

.brand-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-header h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    color: #374151;
}

.brand-header h1 span {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(14, 109, 56, 0.15);
}

.brand-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Custom Tabs */
.tab-container {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 28px;
    border: 1px solid rgba(14, 109, 56, 0.05);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 13px;
    transition: transform 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 109, 56, 0.2);
}

.tab-btn.active i {
    transform: scale(1.1);
}

/* Forms Setup */
.auth-form {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.auth-form.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Input Fields (Floating Labels) */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px 16px 46px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.3s;
}

/* Floating label logic */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background-color: #ffffff;
    border: 1px solid rgba(14, 109, 56, 0.08);
    border-radius: 4px;
    padding: 2px 8px;
    left: 20px;
    color: var(--primary);
    font-weight: 600;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(14, 109, 56, 0.15);
    background: #ffffff;
}

.input-group input:focus ~ .input-icon {
    color: var(--primary);
}

/* Password Toggle Eye */
.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
}

.toggle-password:hover {
    color: var(--text-main);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #0a4f28 100%);
    border: none;
    outline: none;
    color: #ffffff;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(14, 109, 56, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 109, 56, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Toast System (Internal Notification) */
.toast-message {
    display: none;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
}

.toast-message.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-pulse {
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Dashboard Styles */
.driver-info-panel {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.info-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-icon {
    font-size: 22px;
    color: var(--primary);
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-val {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.plate-badge {
    background: var(--primary);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    border: 1.5px solid #084d1a;
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 14px;
}

.quick-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.status-box {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}

.status-box-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    height: 20px;
}

.status-box-header i {
    text-shadow: 0 0 4px rgba(255, 193, 7, 0.25);
}

.status-box:hover {
    border-color: rgba(14, 109, 56, 0.15);
    background: rgba(14, 109, 56, 0.03);
}

.status-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.font-amber {
    color: var(--success);
}

.status-lbl {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    outline: none;
    color: #ef4444;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.05);
    border-color: var(--danger);
    color: #dc2626;
}

/* Responsive adjustments */
@media(max-width: 480px) {
    .auth-card, .dashboard-card {
        padding: 30px 20px;
    }
}

/* Select Input Styling */
.input-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px 16px 46px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(14, 109, 56, 0.15);
    background: #ffffff;
}

/* Photo Upload Wrapper & Preview */
.photo-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.photo-preview-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    border: 2px dashed var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.photo-preview-container:hover {
    border-color: var(--primary);
    background: rgba(14, 109, 56, 0.02);
}

.photo-placeholder-icon {
    font-size: 32px;
    color: var(--text-muted);
}

.photo-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-label {
    background: rgba(14, 109, 56, 0.06);
    border: 1px solid rgba(14, 109, 56, 0.15);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.photo-upload-label:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 109, 56, 0.15);
}

/* Driver Avatar in Dashboard */
.driver-avatar-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.driver-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-photo-placeholder {
    font-size: 36px;
    color: #ffffff;
}

/* GPS Location Panel styling */
.location-panel {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.gps-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--text-muted);
    border-radius: 50%;
}

.gps-dot.pulsing {
    background-color: var(--success);
    animation: gpsPulse 1.6s infinite;
}

.gps-dot.pulsing-error {
    background-color: var(--danger);
    animation: gpsPulseError 1.6s infinite;
}

@keyframes gpsPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes gpsPulseError {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.refresh-gps-btn:hover i {
    transform: rotate(180deg);
}

.refresh-gps-btn i {
    transition: transform 0.4s ease;
}

/* ==========================================
   STATUS CONTROL TIMELINE STYLING
   ========================================== */

.status-control-panel {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.status-badge-step {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    background: rgba(14, 109, 56, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(14, 109, 56, 0.1);
    display: inline-block;
}

#currentStatusTitle {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 10px;
    letter-spacing: 0.2px;
}

/* Timeline/Esteira Horizontal Scroll Wrapper */
.timeline-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 15px 5px 35px;
    margin: 15px 0 5px;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.timeline-wrapper::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.timeline-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.timeline-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.timeline-progress-bar {
    position: absolute;
    height: 3px;
    background: rgba(14, 109, 56, 0.1);
    top: 14px;
    left: 14px;
    width: calc(100% - 28px);
    z-index: 1;
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Usamos a propriedade width dinâmica definida no JS para o progresso */
#timelineProgressBar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    width: 0%;
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.timeline-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(14, 109, 56, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-node:hover {
    transform: scale(1.15);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(14, 109, 56, 0.2);
}

.timeline-node.completed:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(14, 109, 56, 0.4);
}

.timeline-node.active:hover {
    transform: scale(1.2);
}

.timeline-node .node-num, .timeline-node .node-icon {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s;
}

.timeline-node .node-lbl {
    position: absolute;
    top: 34px;
    left: -50px;
    right: -50px;
    text-align: center;
    font-size: 7.5px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.4;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: color 0.3s, opacity 0.3s, transform 0.3s;
}

/* Nó Completado */
.timeline-node.completed {
    border-color: var(--primary);
    background: var(--primary);
}

.timeline-node.completed .node-num, .timeline-node.completed .node-icon {
    color: #ffffff;
}

.timeline-node.completed .node-lbl {
    color: var(--primary);
    font-weight: 700;
    opacity: 0.8;
}

/* Nó Ativo */
.timeline-node.active {
    border-color: var(--primary);
    background: #ffffff;
    transform: scale(1.15);
}

.timeline-node.active .node-num, .timeline-node.active .node-icon {
    color: var(--primary);
}

.timeline-node.active .node-lbl {
    color: var(--primary);
    font-weight: 800;
    opacity: 1;
    transform: scale(1.05);
}

/* Animação do Nó Ativo */
.timeline-node.active {
    animation: activeNodeGlow 2s infinite;
}

@keyframes activeNodeGlow {
    0% { box-shadow: 0 0 0 0 rgba(14, 109, 56, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(14, 109, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 109, 56, 0); }
}

/* Nó em Trânsito Intermediário (Dashed) */
.timeline-node.in-progress {
    border-color: var(--success);
    border-style: dashed;
    background: #ffffff;
    transform: scale(1.1);
    animation: transitNodeGlow 1.6s infinite;
}

.timeline-node.in-progress .node-num {
    color: var(--success);
}

.timeline-node.in-progress .node-lbl {
    color: var(--success);
    font-weight: 700;
    opacity: 1;
}

@keyframes transitNodeGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Pontinhos de Trânsito Intermediário (Diferenciação Premium) */
.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(14, 109, 56, 0.25);
    align-self: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

/* Aumenta a área de clique para facilitar o toque em mobile */
.timeline-dot::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
}

.timeline-dot:hover {
    transform: scale(1.5);
    border-color: var(--primary);
    box-shadow: 0 0 6px rgba(14, 109, 56, 0.3);
}

.timeline-dot.completed {
    border-color: var(--primary);
    background: var(--primary);
}

.timeline-dot.completed:hover {
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(14, 109, 56, 0.4);
}

.timeline-dot.active {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.5);
    animation: activeDotGlow 1.6s infinite;
}

@keyframes activeDotGlow {
    0% { box-shadow: 0 0 0 0 rgba(14, 109, 56, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(14, 109, 56, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 109, 56, 0); }
}

/* Dropdown styling updates inside status panel */
.status-actions select {
    background: #ffffff;
    font-weight: 600;
}

/* Step Navigation Buttons */
.step-nav-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.btn-step {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(14, 109, 56, 0.2);
    color: var(--text-main);
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-step:hover:not(:disabled) {
    background: rgba(14, 109, 56, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-step-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0a4f28 100%);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 109, 56, 0.15);
}

.btn-step-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a4f28 0%, #06351a 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(14, 109, 56, 0.25);
}

.btn-step:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-muted);
    box-shadow: none;
    transform: none;
}


@keyframes spin { 100% { transform: rotate(360deg); } }

@keyframes scaleUp { 0% { transform: scale(0); } 80% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* ==========================================
   SISTEMA DE PÂNICO E EMERGÊNCIA V2.0.2
   ========================================== */

/* Botão de Pânico no Painel do Motorista */
.btn-panic {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-panic:hover {
    background-color: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6) !important;
}

.btn-panic:active {
    transform: translateY(0) !important;
}

/* Card do Motorista em Emergência na Portaria */
.driver-card.emergency {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    animation: sirenAlert 1.5s infinite alternate !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3) !important;
}

.driver-card.emergency:hover {
    border-color: #b91c1c !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6) !important;
}

.driver-card.emergency .driver-status {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

/* Caminhão em Pânico no Mapa */
.emergency-truck .bi-articulated-marker {
    animation: truckEmergencyBlink 1s infinite alternate !important;
}

/* Animações de Emergência */
@keyframes sirenAlert {
    0% {
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
        background: rgba(239, 68, 68, 0.06);
    }
    100% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
        background: rgba(239, 68, 68, 0.22);
    }
}

@keyframes truckEmergencyBlink {
    0% {
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(239, 68, 68, 1));
        transform: scale(1.18);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

