/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --primary-glow: rgba(0, 255, 136, 0.5);
    --black: #000000;
    --dark: #0a0a0a;
    --gray-900: #0f0f0f;
    --gray-800: #1a1a1a;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --white: #ffffff;
    --red: #ef4444;
    --yellow: #fbbf24;
    --blue: #3b82f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Tela Fullscreen */
.tela-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Animado */
.background-animation {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    inset: 0;
}

/* Login Container */
.login-container,
.setup-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 48px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 0 60px rgba(0, 255, 136, 0.1),
        inset 0 0 60px rgba(0, 255, 136, 0.02);
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-cliente {
    height: 50px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-section p {
    color: var(--gray-400);
    font-size: 15px;
}

/* Form Futurista */
.form-futurista {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    padding: 16px 20px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.input-group input::placeholder {
    color: var(--gray-600);
}

/* Botão Futurista */
.btn-futurista {
    position: relative;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-futurista span {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-futurista:hover .btn-glow {
    opacity: 1;
}

.btn-futurista:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-futurista.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--black);
    border: none;
}

.btn-futurista.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5);
}

/* Setup Container */
.setup-container {
    max-width: 500px;
}

.setup-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.step.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--black);
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--gray-700);
}

.setup-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.setup-header p {
    color: var(--gray-400);
}

.setup-step h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.step-description {
    color: var(--gray-400);
    margin-bottom: 32px;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    background: var(--black);
    position: relative;
    overflow-x: hidden;
}

.dashboard-background {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* Header Dashboard */
.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-dashboard {
    height: 36px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.user-subtitle {
    font-size: 13px;
    color: var(--gray-500);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--red);
}

/* Main Content */
.dashboard-main {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Status */
.hero-status {
    margin-bottom: 40px;
}

.status-card-main {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(15, 15, 15, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    gap: 48px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.1);
}

.status-visual {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.moto-icon {
    position: relative;
    z-index: 10;
    width: 200px;
    height: 200px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.pulse-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 1s;
}

.pulse-ring.delay-2 {
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.status-info {
    flex: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 16px;
}

.status-badge.ligada {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-info h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.status-info p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.btn-action {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
}

.btn-action.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--black);
}

.btn-action.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.btn-action.btn-secondary {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--white);
}

.btn-action.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon.battery {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 255, 136, 0.05) 100%);
    color: var(--primary);
}

.metric-icon.speed {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: var(--blue);
}

.metric-icon.distance {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
    color: var(--yellow);
}

.metric-icon.location {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: var(--red);
}

.metric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.metric-value.small {
    font-size: 16px;
}

.metric-subtitle {
    font-size: 13px;
    color: var(--gray-500);
}

.metric-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.info-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.info-description {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 24px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--gray-500);
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.chave-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
}

.chave-display code {
    flex: 1;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
}

.btn-copy {
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 24px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-color: var(--primary);
}

.toast.error {
    border-color: var(--red);
}

/* Loading */
.loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner-futurista {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 10px;
    border-top-color: rgba(0, 255, 136, 0.6);
    animation-duration: 2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    inset: 20px;
    border-top-color: rgba(0, 255, 136, 0.3);
    animation-duration: 2.5s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-main {
        padding: 20px;
    }

    .status-card-main {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

    .status-visual {
        margin: 0 auto;
        width: 160px;
        height: 160px;
    }

    .moto-icon {
        width: 160px;
        height: 160px;
    }

    .moto-icon svg {
        width: 100px;
        height: 100px;
    }

    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Header Mobile */
    .dashboard-header {
        padding: 10px 12px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .header-left {
        flex: 1;
        min-width: 0;
        gap: 12px;
    }

    .logo-dashboard {
        height: 28px;
        flex-shrink: 0;
    }

    .user-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .user-name {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .user-subtitle {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .header-right {
        flex-shrink: 0;
    }

    .btn-logout {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
        white-space: nowrap;
    }

    .btn-logout svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* Login/Setup Mobile */
    .login-container,
    .setup-container {
        padding: 24px 20px;
        margin: 16px;
        border-radius: 20px;
    }

    .logo-cliente {
        height: 40px;
    }

    .logo-section h1 {
        font-size: 24px;
    }

    .logo-section p {
        font-size: 13px;
    }

    .input-group input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .btn-futurista {
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Dashboard Mobile */
    .dashboard-main {
        padding: 16px;
    }

    .hero-status {
        margin-bottom: 24px;
    }

    .status-card-main {
        padding: 24px 20px;
        gap: 24px;
    }

    .status-visual {
        width: 140px;
        height: 140px;
    }

    .moto-icon {
        width: 140px;
        height: 140px;
    }

    .moto-icon svg {
        width: 80px;
        height: 80px;
    }

    .status-info h2 {
        font-size: 20px;
    }

    .status-info p {
        font-size: 13px;
    }

    .status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-action svg {
        width: 20px;
        height: 20px;
    }

    /* Metrics Mobile */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .metric-card {
        padding: 20px;
    }

    .metric-icon {
        width: 56px;
        height: 56px;
    }

    .metric-icon svg {
        width: 28px;
        height: 28px;
    }

    .metric-value {
        font-size: 24px;
    }

    .metric-value.small {
        font-size: 14px;
    }

    /* Info Cards Mobile */
    .info-grid {
        gap: 12px;
        margin-bottom: 24px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 18px;
    }

    .info-item {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-label {
        font-size: 12px;
    }

    .info-value {
        font-size: 14px;
    }

    .chave-display {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .chave-display code {
        font-size: 16px;
        letter-spacing: 2px;
        word-break: break-all;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
    }

    /* Sections Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .btn-filter {
        width: 100%;
        justify-content: center;
    }

    .history-list,
    .stats-section,
    .maintenance-section {
        margin-bottom: 24px;
    }

    .history-list {
        padding: 20px;
    }

    .empty-state {
        padding: 30px 20px;
    }

    .empty-state svg {
        width: 48px;
        height: 48px;
    }

    .empty-state p {
        font-size: 14px;
    }

    /* Stats Mobile */
    .period-selector {
        width: 100%;
        flex-direction: row;
    }

    .period-btn {
        flex: 1;
        font-size: 12px;
        padding: 8px 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-change {
        font-size: 12px;
    }

    /* Maintenance Mobile */
    .maintenance-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .maintenance-card {
        padding: 16px;
    }

    .maintenance-icon {
        width: 40px;
        height: 40px;
    }

    .maintenance-icon svg {
        width: 20px;
        height: 20px;
    }

    .maintenance-info h4 {
        font-size: 14px;
    }

    .maintenance-info p {
        font-size: 12px;
    }

    /* Modal Mobile */
    .modal-overlay {
        padding: 0;
        align-items: center;
    }

    .modal-box {
        max-width: 95%;
        max-height: 80vh;
        border-radius: 16px;
        margin: 16px;
    }

    .modal-large {
        max-width: 95%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 14px 16px;
        flex-shrink: 0;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-close-btn {
        width: 30px;
        height: 30px;
    }

    .modal-body {
        padding: 20px 16px;
        flex: 1;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 14px 16px;
        flex-shrink: 0;
        gap: 10px;
    }

    .btn-modal {
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Modal Icons Mobile */
    .modal-icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 16px;
    }

    .modal-icon svg {
        width: 28px;
        height: 28px;
    }

    .modal-message {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .instruction-item {
        padding: 8px 0;
        font-size: 13px;
    }

    .instruction-number {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .nfc-state h4 {
        font-size: 16px;
    }

    .nfc-state h4 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .nfc-state p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .nfc-instructions {
        padding: 16px;
        margin-bottom: 0;
    }

    .instruction-item {
        padding: 12px 0;
        font-size: 14px;
    }

    .instruction-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .modal-message {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.6;
    }

    .modal-info {
        margin-bottom: 0;
        padding: 12px;
    }

    .modal-info p {
        margin: 6px 0;
        font-size: 13px;
    }

    /* Controls Modal Mobile */
    .controls-grid {
        gap: 20px;
    }

    .control-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .control-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .control-btn {
        padding: 14px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .control-btn svg {
        width: 24px;
        height: 24px;
    }

    .control-btn span {
        font-size: 14px;
    }

    .control-switches {
        gap: 10px;
    }

    .switch-item {
        padding: 12px;
    }

    .switch-item span {
        font-size: 14px;
    }

    .slider-control {
        padding: 16px;
    }

    .slider-labels {
        font-size: 12px;
    }

    /* Toast Mobile */
    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        padding: 14px 20px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Loading Mobile */
    .spinner-futurista {
        width: 60px;
        height: 60px;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .dashboard-header {
        padding: 10px 12px;
    }

    .logo-dashboard {
        height: 24px;
    }

    .user-name {
        font-size: 13px;
    }

    .btn-logout span {
        display: none;
    }

    .status-card-main {
        padding: 20px 16px;
    }

    .status-visual {
        width: 120px;
        height: 120px;
    }

    .moto-icon {
        width: 120px;
        height: 120px;
    }

    .moto-icon svg {
        width: 70px;
        height: 70px;
    }

    .status-info h2 {
        font-size: 18px;
    }

    .metric-card {
        padding: 16px;
    }

    .metric-icon {
        width: 48px;
        height: 48px;
    }

    .metric-value {
        font-size: 20px;
    }

    .chave-display code {
        font-size: 14px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-box {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
    animation: slideUp 0.3s ease;
    margin: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
}

.modal-body {
    padding: 24px 20px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-icon.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    color: var(--yellow);
}

.modal-icon.nfc {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
}

.modal-icon.success {
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: var(--primary);
}

.modal-icon.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.modal-icon.processing {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.modal-message {
    text-align: center;
    color: var(--gray-300);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
}

.modal-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
}

.modal-info p {
    margin: 6px 0;
    color: var(--gray-400);
    font-size: 13px;
}

.modal-info strong {
    color: var(--white);
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-modal {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-modal.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--black);
}

.btn-modal.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

.btn-modal.btn-secondary {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--white);
}

.btn-modal.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
}

.btn-modal.btn-full {
    width: 100%;
}

/* NFC States */
.nfc-state {
    text-align: center;
}

.nfc-state h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--white);
}

.nfc-state p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* NFC Waves Animation */
.nfc-waves {
    position: absolute;
    inset: -10px;
}

.nfc-wave {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: nfcWave 2s ease-out infinite;
}

.nfc-wave:nth-child(2) {
    animation-delay: 0.7s;
}

.nfc-wave:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes nfcWave {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* NFC Instructions */
.nfc-instructions {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-300);
    font-size: 14px;
}

.instruction-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 255, 136, 0.05);
}

.instruction-number {
    width: 28px;
    height: 28px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* NFC Spinner */
.spinner-nfc {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* NFC Success Info */
.nfc-success-info {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.success-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.success-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.success-label {
    color: var(--gray-400);
    font-size: 14px;
}

.success-value {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-box {
        max-width: 100%;
        margin: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }
}

/* Seções Adicionais */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.btn-filter {
    padding: 10px 20px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    border-color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
}

/* Histórico de Viagens */
.history-section {
    margin-bottom: 40px;
}

.history-list {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    padding: 32px;
    min-height: 200px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-500);
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 15px;
}

.trip-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.trip-item:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
}

.trip-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.trip-details {
    flex: 1;
}

.trip-date {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.trip-route {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.trip-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-400);
}

/* Estatísticas */
.stats-section {
    margin-bottom: 40px;
}

.period-selector {
    display: flex;
    gap: 8px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    padding: 4px;
}

.period-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-btn:hover {
    color: var(--white);
}

.period-btn.active {
    background: var(--primary);
    color: var(--black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stat-title {
    font-size: 13px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-header svg {
    color: var(--primary);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: var(--primary);
}

.stat-change.negative {
    color: var(--red);
}

.stat-change.neutral {
    color: var(--gray-500);
}

/* Manutenção */
.maintenance-section {
    margin-bottom: 40px;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.maintenance-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    transform: translateY(-2px);
}

.maintenance-card.ok {
    border-color: rgba(0, 255, 136, 0.3);
}

.maintenance-card.warning {
    border-color: rgba(251, 191, 36, 0.3);
}

.maintenance-card.alert {
    border-color: rgba(239, 68, 68, 0.3);
}

.maintenance-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.maintenance-card.ok .maintenance-icon {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

.maintenance-card.warning .maintenance-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--yellow);
}

.maintenance-card.alert .maintenance-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.maintenance-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.maintenance-info p {
    font-size: 13px;
    color: var(--gray-400);
}

/* Modal Controles Avançados */
.modal-large {
    max-width: 700px;
    max-height: 85vh;
}

.controls-grid {
    display: grid;
    gap: 32px;
}

.control-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.control-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.control-btn {
    padding: 16px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    border-color: var(--primary);
    background: rgba(26, 26, 26, 0.8);
}

.control-btn.active {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
}

.control-btn svg {
    width: 32px;
    height: 32px;
}

.control-btn span {
    font-size: 14px;
    font-weight: 600;
}

.control-switches {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
}

.switch-item span {
    font-size: 14px;
    color: var(--white);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(107, 114, 128, 0.3);
    transition: 0.3s;
    border-radius: 28px;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: var(--gray-500);
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(0, 255, 136, 0.2);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--primary);
}

input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slider Control */
.slider-control {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
}

.slider-control input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

.slider-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--primary-glow);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-400);
}

.slider-labels span:nth-child(2) {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Adicional */
@media (max-width: 768px) {
    .control-options {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-grid {
        grid-template-columns: 1fr;
    }

    .period-selector {
        width: 100%;
    }

    .period-btn {
        flex: 1;
    }

    /* Fix para modal em mobile */
    .modal-overlay {
        padding: 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        align-items: center;
        justify-content: center;
    }

    .modal-box {
        border-radius: 16px;
        max-height: 90vh;
        height: auto;
        max-width: 90%;
        width: 90%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        margin: auto;
    }

    .modal-large {
        border-radius: 16px;
        max-height: 90vh;
        height: auto;
        max-width: 90%;
        width: 90%;
    }

    .modal-body {
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        max-height: none;
        padding: 24px 20px;
    }

    .modal-footer {
        position: relative;
        bottom: auto;
        background: transparent;
        border-top: 1px solid rgba(0, 255, 136, 0.1);
        backdrop-filter: none;
    }

    /* Melhorar controles em mobile */
    .control-options {
        gap: 8px;
    }

    .control-btn {
        padding: 12px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .control-switches {
        gap: 10px;
    }

    .switch-item {
        padding: 12px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-box {
        height: auto;
        max-height: 100vh;
    }

    .modal-body {
        max-height: calc(100vh - 120px);
    }
}


/* Campos de senha numérica */
input[type="tel"]#nova-senha,
input[type="tel"]#confirmar-senha,
input[type="tel"]#novo-pin,
input[type="tel"]#confirmar-pin {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Placeholder para campos numéricos */
input[type="tel"]#nova-senha::placeholder,
input[type="tel"]#confirmar-senha::placeholder,
input[type="tel"]#novo-pin::placeholder,
input[type="tel"]#confirmar-pin::placeholder {
    letter-spacing: 4px;
    font-size: 20px;
}


/* ========================================
   MAPA DE RASTREAMENTO
   ======================================== */

.tracking-map-section {
    margin: 32px 0;
}

.tracking-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    padding: 32px;
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tracking-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin: 0;
}

.tracking-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-animation 2s ease-in-out infinite;
}

@keyframes pulse-animation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.tracking-status span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

/* Barra de Progresso */
.tracking-progress {
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 14px;
    color: var(--gray-400);
}

.progress-percentage {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--gray-800);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    transition: width 1s ease-out;
    width: 0%;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-500);
}

/* Mapa SVG */
.map-container {
    background: #000;
    border: 1px solid var(--gray-800);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    height: 450px;
}

.real-map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    pointer-events: none;
    max-width: 280px;
}

.map-route-info {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gray-800);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-point.origin .point-icon {
    color: var(--primary);
}

.route-point.destination .point-icon {
    color: #ef4444;
}

.point-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.route-point.destination .point-icon {
    background: rgba(239, 68, 68, 0.1);
}

.point-icon svg {
    width: 16px;
    height: 16px;
}

.point-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.point-label {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.point-address {
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.route-line {
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary) 0%, #ef4444 100%);
    margin-left: 15px;
    border-radius: 2px;
}

/* Leaflet customization */
.leaflet-container {
    background: #0a0a0a !important;
    font-family: 'Inter', sans-serif !important;
}

.leaflet-tile {
    filter: grayscale(100%) invert(100%) contrast(90%) brightness(90%);
}

.leaflet-routing-container {
    display: none !important;
}

.leaflet-marker-icon {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.leaflet-popup-content-wrapper {
    background: var(--gray-900) !important;
    color: var(--white) !important;
    border: 1px solid var(--gray-800) !important;
    border-radius: 8px !important;
}

.leaflet-popup-tip {
    background: var(--gray-900) !important;
    border: 1px solid var(--gray-800) !important;
}

/* Informações de Rastreamento */
.tracking-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tracking-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--gray-800);
    border-radius: 12px;
}

.tracking-detail svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.tracking-detail > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-card {
        padding: 20px;
    }

    .tracking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tracking-info {
        grid-template-columns: 1fr;
    }

    .map-container {
        padding: 16px;
    }
}
