* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Header com informações do usuário */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 20px;
}

.header-top h1 {
    color: #667eea;
    font-size: 2.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 50px;
}

.user-info span {
    color: #555;
    font-weight: 500;
}

.user-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mensagens de sucesso/erro */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Botões de ação */
.botoes {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-edit {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
}

/* Tabela moderna */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #5568d3;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
}

tbody tr:nth-child(even) {
    background: #fafbfc;
}

tbody tr:nth-child(even):hover {
    background: #f0f2f5;
}

td {
    padding: 16px 15px;
    font-size: 14px;
    color: #495057;
}

/* Destaque para informações importantes */
.apto-badge {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.vaga-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.placa-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #dc3545;
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 5px;
    letter-spacing: 1px;
}

.nome-text {
    font-weight: 600;
    color: #212529;
}

.email-text {
    color: #6c757d;
    font-size: 13px;
}

.veiculo-text {
    color: #495057;
    font-weight: 500;
}

.acoes {
    white-space: nowrap;
    display: flex;
    gap: 8px;
}

/* Mensagem quando não há dados */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    font-size: 16px;
}

/* Formulários */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

/* Responsividade - Versão Mobile com Cards */
@media (max-width: 992px) {
    .container {
        padding: 20px;
    }
    
    .header-top h1 {
        font-size: 1.8em;
    }
    
    .botoes {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        border-radius: 10px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-top h1 {
        font-size: 1.5em;
    }
    
    /* Esconder tabela e mostrar cards */
    .table-container {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    
    .card {
        background: white;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-left: 5px solid #667eea;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .card-badges {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .card-body {
        display: grid;
        gap: 12px;
    }
    
    .card-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .card-label {
        font-size: 11px;
        text-transform: uppercase;
        color: #6c757d;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .card-value {
        font-size: 15px;
        color: #212529;
        font-weight: 500;
    }
    
    .card-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #f0f0f0;
    }
    
    .card-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .botoes {
        flex-direction: column;
    }
    
    .botoes .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Desktop: esconder cards */
@media (min-width: 769px) {
    .mobile-cards {
        display: none;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    animation: fadeIn 0.5s ease;
}
/* Formulário de Pesquisa */
.search-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
}

.search-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-search:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.btn-clear {
    background: #6c757d;
    color: white;
}

.btn-clear:hover {
    background: #5a6268;
}

/* Contador de resultados */
.results-info {
    background: #e7f3ff;
    color: #004085;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border-left: 4px solid #007bff;
}

.results-info strong {
    font-size: 18px;
}

/* Responsividade para busca */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .search-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* Botão Toggle de Pesquisa */
.btn-toggle-search {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
    margin-bottom: 15px;
}

.btn-toggle-search:hover {
    background: linear-gradient(135deg, #138496 0%, #5a32a3 100%);
}

.btn-toggle-search.active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Container de pesquisa com animação */
.search-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #e9ecef;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 25px;
    margin-bottom: 0;
    transition: all 0.4s ease;
}

.search-container.show {
    max-height: 800px;
    opacity: 1;
    padding: 25px;
    margin-bottom: 25px;
}

/* Ícone do botão muda quando ativo */
.btn-toggle-search .icon-show::before {
    content: "🔍";
}

.btn-toggle-search.active .icon-show::before {
    content: "✖";
}