:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.navbar {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: var(--light);
    font-weight: 600;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-card:nth-child(5) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.stat-card:nth-child(6) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

/* Novas classes adicionadas */
.mt-4 {
    margin-top: 1.5rem !important;
}

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

.table-sm td, .table-sm th {
    padding: 0.5rem;
}

.text-center {
    text-align: center !important;
}

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

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-success {
    color: var(--success) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: var(--warning) !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.float-right {
    float: right !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

/* Ícones Font Awesome */
.fas {
    margin-right: 5px;
}

.fa-2x {
    font-size: 2em;
}

/* Adicione ao final do arquivo CSS */

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.thead-dark th {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

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

.bg-success {
    background-color: var(--success) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

/* ===== NAVBAR ORIGINAL (PC) ===== */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin: 0 2px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Dropdown de relatórios */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 25px;
}

.dropdown-toggle .fa-chevron-down {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 10px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none;
    min-width: 180px;
    z-index: 1000;
}

.dropdown-link {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 20px;
    transition: background-color 0.3s ease;
}

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

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.nav-dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

/* Informações do usuário */
.user-info {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.user-name {
    color: white;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.logout-link {
    margin-left: 5px;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media (max-width: 1024px) {
    .navbar-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .user-info {
        margin-left: 5px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--secondary), var(--dark));
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 20px;
        margin: 0;
        justify-content: flex-start;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        width: 100%;
        display: none;
        padding: 0;
    }
    
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-link {
        color: white;
        padding: 10px 20px 10px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .user-info {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .user-name {
        padding: 10px 20px;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .logout-link {
        margin-left: 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Melhorias para tabelas em mobile */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #dee2e6;
    }
    
    .table thead {
        display: none;
    }
    
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    
    .table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 5px;
        padding: 10px;
    }
    
    .table td {
        text-align: right;
        padding: 10px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .table td:last-child {
        border-bottom: none;
    }
    
    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
    }
}

/* Ajustes para cards em mobile */
@media (max-width: 768px) {
    .card-header {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

/* Garantir que imagens sejam responsivas */
img {
    max-width: 100%;
    height: auto;
}