:root {
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --primary-light: #333333;
    --accent-color: #ff6b35;
    --text-light: #ffffff;
    --text-dark: #000000;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-dark: #000000;
    --border-color: #dee2e6;
    --hover-gray: #f8f9fa;
}

/* Logo styles */
.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--text-light);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-icon {
    color: var(--text-light);
    margin-right: 0.5rem;
}

/* Force hide any logo text */
.logo strong,
.logo h3,
.auth-logo h3,
.auth-logo strong {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Navbar customization */
.navbar-dark {
    background-color: #111 !important;
    border-bottom: 2px solid #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    /* overflow-x: auto; removido para não cortar dropdown */
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff !important;
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.35rem 0.7rem !important;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: background 0.18s, color 0.18s, border-bottom 0.18s;
    position: relative;
    white-space: nowrap;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.router-link-exact-active {
    border-bottom: 3px solid #0d6efd;
    color: #0d6efd !important;
    background: #181818;
}

.navbar-nav .nav-link:hover {
    background: #232323 !important;
    color: #0d6efd !important;
}

.navbar-nav .nav-link i {
    font-size: 1.05rem;
    margin-bottom: 0 !important;
}

.navbar-brand.logo {
    font-size: 1.1rem;
    gap: 0.4rem;
}

.navbar-nav {
    flex-wrap: wrap;
    overflow: visible !important;
    position: static;
}

/* Avatar do usuário */
.navbar-nav .nav-item .avatar-circle {
    width: 32px;
    height: 32px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Sombra leve na navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Button customization */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Card customization */
.card {
    border: 1px solid var(--border-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

/* Badge customization */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

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

/* Alert customization */
.alert-info {
    background-color: var(--primary-light);
    border-color: var(--border-color);
    color: var(--text-light);
}

/* Login/Cadastro pages */
.auth-container {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--text-light);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
}

.auth-card label,
.auth-card .form-label,
.auth-card .input-group-text {
    color: var(--primary-color);
}

.auth-card input {
    color: var(--primary-dark);
    background: #fff;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.auth-logo h3 {
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 1rem;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.quick-action-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
.quick-action-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    text-decoration: none;
    opacity: 0.95;
}
.quick-action-card .card-body i {
    font-size: 2.5rem;
}
.quick-action-card .card-body h6 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        font-size: 0.93rem;
        padding: 0.3rem 0.5rem !important;
        gap: 0.18rem;
    }
    .navbar-brand.logo {
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.25rem 0.4rem !important;
    }
    .navbar-brand.logo {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100vw;
    }
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.18rem 0.3rem !important;
    }
    .navbar-brand.logo {
        font-size: 0.9rem;
    }
} 

/* Garantir que o dropdown do perfil apareça acima */
.navbar-nav .dropdown-menu {
    position: absolute !important;
    right: 0;
    left: auto;
    top: 100%;
    min-width: 180px;
    z-index: 2000;
    margin-top: 0.3rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}

.navbar-nav .dropdown {
    position: relative;
}

/* Remover overflow do nav pai para dropdown não ser cortado */
.navbar-nav {
    overflow: visible !important;
} 

/* Tabela administrativa moderna */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}
.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #fff;
}
.table > thead {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table > thead th {
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #111;
    color: #fff;
    border-bottom: 2px solid #222;
}
.table > tbody tr:hover {
    background: #e9ecef;
}
.table td, .table th {
    vertical-align: middle;
    padding: 0.65rem 0.7rem;
}
/* Botões de ação padronizados na tabela */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 36px;
    width: 38px;
    height: 34px;
    font-size: 1.1em;
    border-radius: 0.7rem;
    border: 1.5px solid transparent;
    background: #f8f9fa;
    color: #222;
    transition: background 0.15s, color 0.15s, border 0.15s;
    margin-right: 0.18em;
    padding: 0.18em 0.18em;
}
.btn-action:last-child { margin-right: 0; }
.btn-action i {
    font-size: 1.15em;
    margin: 0;
}
.btn-action:hover, .btn-action:focus {
    background: #e9ecef;
    color: #0d6efd;
    border-color: #0d6efd;
}
.btn-action.btn-danger {
    background: #fff0f0;
    color: #d32f2f;
    border-color: #ffcdd2;
}
.btn-action.btn-danger:hover {
    background: #ffcdd2;
    color: #b71c1c;
    border-color: #b71c1c;
}
.btn-action.btn-success {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #c8e6c9;
}
.btn-action.btn-success:hover {
    background: #c8e6c9;
    color: #1b5e20;
    border-color: #1b5e20;
}
.btn-action.btn-primary {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}
.btn-action.btn-primary:hover {
    background: #bbdefb;
    color: #0d47a1;
    border-color: #0d47a1;
}
.btn-action.btn-warning {
    background: #fffde7;
    color: #fbc02d;
    border-color: #ffe082;
}
.btn-action.btn-warning:hover {
    background: #ffe082;
    color: #f57c00;
    border-color: #f57c00;
}
.btn-action.btn-dark {
    background: #ececec;
    color: #222;
    border-color: #bdbdbd;
}
.btn-action.btn-dark:hover {
    background: #bdbdbd;
    color: #111;
    border-color: #111;
}

/* Badges menores e mais arredondados */
.badge {
    border-radius: 1.2rem;
    font-size: 0.92em;
    font-weight: 500;
    padding: 0.32em 0.8em;
    letter-spacing: 0.01em;
}
.btn-group .btn, .btn-group .btn-sm {
    font-size: 0.97em;
    padding: 0.35em 0.7em;
    border-radius: 0.5rem;
    margin-right: 0.2em;
}
.btn-group .btn:last-child {
    margin-right: 0;
}
.table-responsive {
    overflow-x: unset;
}
@media (max-width: 991px) {
    .table-responsive {
        overflow-x: auto;
    }
    .table th, .table td {
        font-size: 0.97em;
        padding: 0.5rem 0.5rem;
    }
    .btn-group .btn, .btn-group .btn-sm, .btn-action {
        font-size: 0.93em;
        padding: 0.28em 0.5em;
        min-width: unset;
        height: 32px;
        margin-right: 0.15em;
    }
} 

.central-table {
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    width: 100%;
}
@media (max-width: 991px) {
    .central-table {
        max-width: 100vw;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }
} 