/* ========== Variables ========== */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --gray-color: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --nav-height: 65px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Global Styles ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== Navbar ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    min-height: var(--nav-height);
    padding: 0.75rem 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.navbar-brand i {
    font-size: 1.5rem;
}

/* Nav Links */
.navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: var(--light-gray);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.navbar-nav .nav-link.active:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Dropdown Styles */
.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}

.dropdown-item {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========== Main Content ========== */
main {
    flex: 1;
    padding: 2rem 0;
    animation: fadeInUp 0.6s ease-out;
}

.container {
    max-width: 1200px;
}

/* ========== Cards ========== */
.card {
    background: var(--white);
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--light-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ========== Buttons ========== */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

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

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

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

/* ========== Alerts ========== */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInDown 0.5s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
}

/* ========== Modals ========== */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--light-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--dark-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* ========== Footer ========== */
footer {
    background: var(--white);
    color: var(--gray-color);
    padding: 2rem 0;
    margin-top: auto;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

footer p {
    margin: 0;
    font-weight: 500;
}

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

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--white);
        border-radius: 0.75rem;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        margin: 0;
    }

    .dropdown-menu {
        box-shadow: none;
        background: var(--light-gray);
        margin: 0;
        padding: 0.5rem 0 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem 0;
    }

    .card {
        border-radius: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ========== Dark Mode Support ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #0f172a;
        --light-gray: #1e293b;
        --gray-color: #94a3b8;
        --dark-color: #f1f5f9;
    }

    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }

    .navbar {
        background: rgba(15, 23, 42, 0.95);
    }

    .dropdown-menu {
        background: #1e293b;
    }

    .card {
        background: #1e293b;
    }

    footer {
        background: #0f172a;
    }
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

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

/* ========== Loading Spinner ========== */
.spinner-border {
    color: var(--primary-color);
}

/* ========== Form Controls ========== */
.form-control,
.form-select {
    border: 2px solid var(--light-gray);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ========== Tables ========== */
.table {
    border-radius: 0.75rem;
    overflow: hidden;
}

.table thead {
    background: var(--light-gray);
}

.table th {
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    border-color: var(--light-gray);
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background: var(--light-gray);
}

/* ========================================
   styles.css - Estilos Globais Complementares
   ======================================== */

/* ========== Page Specific Helpers ========== */

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 2rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Content Sections */
.content-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* ========== Enhanced Components ========== */

/* Icon Boxes */
.icon-box {
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.icon-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.icon-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.icon-box p {
    color: var(--gray-color);
    margin: 0;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
}

/* ========== Lists ========== */

.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.custom-list li:hover {
    background: var(--light-gray);
    padding-left: 1.5rem;
}

.custom-list li:last-child {
    border-bottom: none;
}

.custom-list i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* ========== Stats ========== */

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

.stat-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-box .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

/* ========== Timeline ========== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--light-gray);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}

.timeline-item .timeline-date {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.timeline-item .timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

/* ========== Empty States ========== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 5rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

/* ========== Badges ========== */

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ========== Pagination ========== */

.pagination-custom {
    display: flex;
    gap: 0.5rem;
}

.pagination-custom .page-link {
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pagination-custom .page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary-color);
    color: var(--white);
}

/* ========== Search Box ========== */

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 2rem;
    font-size: 1rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ========== Loading States ========== */

.skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, #e0e0e0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 50%;
    margin-bottom: 1rem;
}

.skeleton-box {
    height: 100px;
    width: 100%;
    margin-bottom: 1rem;
}

/* ========== Responsive Utilities ========== */

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .content-section {
        padding: 1.5rem;
    }
}

/* ========== Print Styles ========== */

@media print {
    .navbar,
    footer,
    .btn,
    .alert,
    .search-box {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        background: white !important;
    }
    
    .content-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
} 