/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Cores do Tema - Estacionamento Rotativo */
:root {
    --primary-blue: #0066CC;
    --primary-blue-dark: #0052A3;
    --primary-blue-light: #1a7ae6;
    --warning-orange: #FFA500;
    --warning-orange-dark: #FF8C00;
    --success-green: #00AA44;
    --success-green-dark: #008833;
    --danger-red: #DC3545;
    --danger-red-dark: #C82333;
    --info-cyan: #17A2B8;
    --info-cyan-dark: #138496;
    --sidebar-dark: #003366;
    --sidebar-gradient-start: #004080;
    --sidebar-gradient-end: #0066CC;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Container principal */
.app-container {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar-gradient-start) 0%, var(--sidebar-dark) 50%, var(--sidebar-gradient-end) 100%);
    border-right: none;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 8px 0 24px rgba(0, 51, 102, 0.4);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: #f5f7ff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 18px;
}

.logo i {
    font-size: 24px;
}

.logo-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Menu */
.sidebar-menu {
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section-title {
    display: none;
}

.sidebar.collapsed .menu-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    margin: 2px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    color: #f6f7fb;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.menu-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.menu-item.active .menu-link {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-left: 4px solid #ffffff;
    padding-left: 18px;
}

.menu-link i {
    width: 28px;
    font-size: 28px;
    margin-right: 4px;
    text-align: center;
}

.menu-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s ease;
    display: flex;
        flex-direction: column;
}

/* Quando há sidebar, adiciona margin */
.app-container .sidebar ~ .main-content {
    margin-left: 280px;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}

/* Top Header */
.top-header {
    background: white;
    padding: 0 30px;
    height: 70px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #495057;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: none;
}

.mobile-menu-toggle:hover {
    background-color: #f8f9fa;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

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

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.user-menu:hover {
    background-color: #f8f9fa;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: #6c757d;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 8px 0;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Dashboard Blocks */
.dashboard-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.dashboard-block {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid;
    cursor: pointer;
}

.dashboard-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dashboard-block.primary {
    border-left-color: var(--primary-blue);
}

.dashboard-block.success {
    border-left-color: var(--success-green);
}

.dashboard-block.warning {
    border-left-color: var(--warning-orange);
}

.dashboard-block.info {
    border-left-color: #17a2b8;
}

.dashboard-block.danger {
    border-left-color: #dc3545;
}

.dashboard-block.purple {
    border-left-color: #6f42c1;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.block-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.block-icon.primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
}

.block-icon.success {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
}

.block-icon.warning {
    background: linear-gradient(135deg, var(--warning-orange) 0%, var(--warning-orange-dark) 100%);
}

.block-icon.info {
    background: linear-gradient(135deg, var(--info-cyan) 0%, var(--info-cyan-dark) 100%);
}

.block-icon.danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-dark) 100%);
}

.block-icon.purple {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

.block-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.block-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
}

.block-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 24px;
    padding: 24px;
}

.card-header {
    background: none;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-green-dark) 0%, var(--success-green) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 170, 68, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red) 0%, var(--danger-red-dark) 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-red-dark) 0%, var(--danger-red) 100%);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-camera {
    background: linear-gradient(135deg, var(--warning-orange) 0%, var(--warning-orange-dark) 100%);
    color: white;
    padding: 10px 16px;
}

.btn-camera:hover {
    background: linear-gradient(135deg, var(--warning-orange-dark) 0%, var(--warning-orange) 100%);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    flex: 1;
    min-width: 200px;
}

/* Tables */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 16px;
}

.table tbody td {
    border: none;
    padding: 16px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.text-muted {
    color: #6c757d !important;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-control {
    flex: 1;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Container e Header antigos (compatibilidade) */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header h1 {
    color: #2563eb;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.empresa-info {
    color: #374151;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.empresa-info i {
    margin-right: 0.25rem;
    color: #2563eb;
}

.vagas-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.vaga-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vaga-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.vaga-icon.success {
    background: #10b981;
}

.vaga-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vaga-label {
    font-size: 0.75rem;
    color: #374151;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.vaga-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.vaga-value.success {
    color: #10b981;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    overflow-y: auto;
    padding: 20px;
}

.modal.show {
    display: block;
}

.modal[style*="display: block"] {
    display: block !important;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #dc3545;
}

#video {
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    background: #000;
}

.camera-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.placa-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: #2563eb;
}

/* Informações de Movimentação */
.movimentacao-info {
    margin: 1.5rem 0;
}

.info-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-card p {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.valor {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Lista de Movimentações */
.movimentacoes-lista {
    display: grid;
    gap: 1rem;
}

.movimentacao-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.movimentacao-info-item {
    flex: 1;
    min-width: 200px;
}

.movimentacao-info-item strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.movimentacao-info-item span {
    color: #374151;
    font-size: 1rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #374151;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #374151;
}

.empty-state i {
    font-size: 3rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #1f2937;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 1rem;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.toast.success {
    background-color: var(--success-green);
}

.toast.error {
    background-color: var(--danger-red);
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Dashboard/Tela de Início */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.dashboard-icon.primary {
    background: rgba(0, 102, 204, 0.2);
    border: 2px solid rgba(0, 102, 204, 0.3);
}

.dashboard-icon.success {
    background: rgba(0, 170, 68, 0.2);
    border: 2px solid rgba(0, 170, 68, 0.3);
}

.dashboard-icon.warning {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid rgba(255, 165, 0, 0.3);
}

.dashboard-content h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: bold;
}

.dashboard-content p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.dashboard-recent {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.dashboard-recent h3 {
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Admin Section */
.admin-section {
    margin-bottom: 2rem;
}

.admin-lista {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.usuarios-lista {
    margin-top: 1.5rem;
}

.admin-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    /* Forçar sidebar fechado por padrão no mobile */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 280px;
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 6px 0 18px rgba(0, 0, 0, 0.3);
    }

    /* Garantir que main-content não tenha margin no mobile */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Garantir que app-container não tenha overflow */
    .app-container {
        overflow-x: hidden;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .page-content {
        padding: 12px !important;
    }

    .top-header {
        padding: 0 12px !important;
        height: 60px !important;
    }

    .page-title {
        font-size: 18px !important;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-info {
        display: none !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .dashboard-card {
        padding: 1.2rem !important;
        flex-direction: column;
        text-align: center;
    }

    .dashboard-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    .dashboard-content h3 {
        font-size: 2rem !important;
    }

    .dashboard-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .btn-large {
        width: 100% !important;
        min-width: auto !important;
    }

    .card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .card h2 {
        font-size: 1.25rem !important;
    }

    .header {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .vagas-info {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }

    .vaga-card {
        padding: 0.75rem !important;
    }

    .header-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .header-actions .btn {
        width: 100% !important;
    }

    .input-group {
        flex-direction: column !important;
    }

    .input-group .form-control {
        width: 100% !important;
    }

    .dashboard-content h3 {
        font-size: 2.1rem;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .btn-large,
    .btn-block {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding: 12px;
    }

    .dashboard-card {
        padding: 1.2rem;
    }

    .dashboard-content h3 {
        font-size: 1.8rem;
    }

    .block-value {
        font-size: 26px;
    }

    .camera-actions {
        flex-direction: column;
    }

    .camera-actions .btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2) !important;
}

/* Dashboard Filtros */
.dashboard-filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

/* Dashboard Table */
.dashboard-table-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.dashboard-table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
}

.dashboard-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.dashboard-table tbody tr:hover {
    background-color: #f8f9fa;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .dashboard-table-container {
        overflow-x: auto;
    }
    
    .dashboard-table {
        min-width: 800px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        width: 100%;
    }
}
