@charset "UTF-8";

/* Variáveis locais removidas - usando theme.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg) !important;
    color: var(--text) !important;
}

a {
    color: var(--primary) !important;
    text-decoration: none;
}

a:hover {
    color: var(--primary-hover) !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--surface);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 0;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-hover);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn.secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow);
    color: var(--text) !important;
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--primary) !important;
    color: var(--surface) !important;
    font-size: 12px;
}

.topbar {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text) !important;
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--surface) !important;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px 16px;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted) !important;
    margin-bottom: 6px;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--primary-light);
    color: var(--primary) !important;
}

.content {
    margin-left: 260px;
    padding: 24px;
    background: var(--bg) !important;
    color: var(--text) !important;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 8px;
    text-align: left;
    color: var(--text) !important;
}

.table th {
    background: #F2F4F7 !important;
    color: var(--text) !important;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm);
    background: var(--surface) !important;
    color: var(--text) !important;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-focus) !important;
}

label {
    color: var(--text) !important;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

h2 {
    color: var(--text) !important;
    font-weight: 700;
    margin-bottom: 20px;
}

.alert {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--info-light);
    border-left: 4px solid var(--info);
    color: var(--text) !important;
}

.mobile-header {
    background: var(--surface) !important;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text) !important;
}

.footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg) !important;
    color: var(--text-muted) !important;
    text-align: center;
}

.driver-body {
    padding-bottom: 84px;
}

body.driver-modal-open {
    overflow: hidden;
}

.driver-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.driver-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.driver-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted) !important;
    white-space: nowrap;
    font-size: 13px;
}

.driver-nav a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.driver-sos-floating-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: var(--danger);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(229, 57, 53, 0.35);
}

.driver-sos-modal[hidden] {
    display: none !important;
}

.driver-sos-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    background: rgba(0, 0, 0, 0.65);
    display: grid;
    place-items: center;
    padding: 16px;
}

.driver-sos-modal-card {
    width: min(620px, 100%);
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 16px;
    display: grid;
    gap: 10px;
}

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

.driver-sos-close {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.driver-sos-media-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.driver-sos-camera-preview {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.driver-sos-media-preview {
    width: 100%;
}

.driver-sos-submit {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
