:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.min-vh-100 {
    min-height: 100vh;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0056b3, #004299);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #157347);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #0b99c7);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d39e00);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    color: white;
}

.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 110, 253, 0.05);
}

.alert {
    border-radius: 10px;
    border: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.stats-card .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stats-card .number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .stats-card .number {
        font-size: 1.5rem;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Avatar no menu */
.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    background: #e9ecef;
}
.user-avatar-nav-placeholder {
    font-size: 1.5rem;
    margin-right: 8px;
    color: rgba(255,255,255,0.8);
}
.navbar-nav .nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
}
.dropdown-item.active {
    background: #0d6efd;
    color: white;
}
.dropdown-item.active i {
    color: white;
}

/* Hover effect no avatar */
.nav-link .user-avatar-nav {
    transition: all 0.3s ease;
}
.nav-link:hover .user-avatar-nav {
    border-color: white;
    transform: scale(1.05);
}


/* Stats Box com cores personalizadas */
.stats-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--cor-primaria);
}
.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.stats-box .label {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stats-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3px;
}
.stats-box .sub-info {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
}
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.icon-circle-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.icon-circle-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}
.icon-circle-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}
.icon-circle-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}
.icon-circle-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.text-purple {
    color: #6f42c1 !important;
}

/* Responsividade dos cards */
@media (max-width: 767.98px) {
    .stats-box .value {
        font-size: 1.2rem;
    }
    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}