/* Sistema Verde de Gestión Social - Enhanced Styles */

/* Root Variables */
:root {
    --verde-primary: #006400;
    --verde-light: #00cc66;
    --verde-light-alt: #90EE90;
    --verde-dark: #004d00;
    --verde-hover: #005500;
    --verde-gradient: linear-gradient(135deg, #006400 0%, #00cc66 100%);
    --verde-gradient-light: linear-gradient(135deg, #00cc66 0%, #90EE90 100%);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0 0.25rem 0.5rem rgba(0, 100, 0, 0.2);
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Body and General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 50%, #dcedc8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: 70px;
    line-height: 1.6;
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

p {
    color: #495057;
    margin-bottom: 1rem;
}

/* Accessibility Improvements */
*:focus {
    outline: 2px solid var(--verde-light);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

/* Glass Effect for Dashboard Cards */
.dashboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
}

/* Enhanced Statistics Cards */
.stats-card {
    background: var(--verde-gradient);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 100, 0, 0.3);
}

/* Custom Verde Color Classes */
.bg-verde-primary {
    background-color: var(--verde-primary) !important;
}

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

.bg-verde-light-alt {
    background-color: var(--verde-light-alt) !important;
}

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

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

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

/* Custom Button Styles */
.btn-verde-primary {
    background-color: var(--verde-primary);
    border-color: var(--verde-primary);
    color: white;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
}

.btn-verde-primary:hover,
.btn-verde-primary:focus {
    background-color: var(--verde-hover);
    border-color: var(--verde-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--box-shadow-lg);
}

.btn-verde-primary:active {
    transform: translateY(0);
    box-shadow: var(--box-shadow);
}

/* Enhanced Button Styles */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Button Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Enhanced Form Styles */
.form-control {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--verde-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 204, 102, 0.25);
}

.form-control:hover:not(:focus) {
    border-color: #adb5bd;
}

/* Form Labels Enhancement */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Select Enhancement */
.form-select {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--verde-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 204, 102, 0.25);
}

.btn-verde-primary:active {
    background-color: var(--verde-dark);
    border-color: var(--verde-dark);
    transform: translateY(0);
}

.btn-verde-light {
    background-color: var(--verde-light);
    border-color: var(--verde-light);
    color: white;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
}

.btn-verde-light:hover,
.btn-verde-light:focus {
    background-color: var(--verde-primary);
    border-color: var(--verde-primary);
    color: white;
}

.btn-outline-verde-primary {
    border-color: var(--verde-primary);
    color: var(--verde-primary);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
}

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

/* Navbar Enhancements */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out;
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .badge {
    font-size: 0.7em;
    margin-left: 0.25rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* Table Enhancements */
.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
    color: var(--verde-primary);
}

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

/* Badge Enhancements */
.badge {
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--verde-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 204, 102, 0.25);
}

.form-select:focus {
    border-color: var(--verde-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 204, 102, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Alert Enhancements */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

.alert-success {
    background-color: rgba(0, 100, 0, 0.1);
    color: var(--verde-dark);
    border-left: 4px solid var(--verde-primary);
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-info {
    border-left: 4px solid #0dcaf0;
}

/* Progress Bar */
.progress-bar {
    transition: width 0.6s ease;
}

/* Pagination */
.pagination .page-link {
    color: var(--verde-primary);
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    color: white;
    background-color: var(--verde-primary);
    border-color: var(--verde-primary);
}

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

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-item:hover {
    background-color: rgba(0, 100, 0, 0.05);
    color: var(--verde-primary);
}

/* Enhanced Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--verde-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 0, 0.25);
}

.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--verde-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 0, 0.25);
}

/* Enhanced Table Styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: var(--verde-gradient);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(0, 100, 0, 0.05);
    transform: scale(1.01);
}

/* Enhanced Badge Styles */
.badge {
    border-radius: 20px;
    padding: 0.5em 0.8em;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Animated Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Electoral Heatmap Enhanced Styles */
.heatmap-card {
    transition: var(--transition);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.heatmap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.heatmap-card:hover::before {
    opacity: 1;
}

.heatmap-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Birthday Notification Enhanced */
.birthday-notification {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9ff 100%);
    border-left: 5px solid #2196f3;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

/* Traffic Light Enhanced */
.traffic-light-card {
    transition: var(--transition);
    cursor: pointer;
}

.traffic-light-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

/* Navigation Enhancement */
.navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.bg-verde-primary {
    background: var(--verde-gradient) !important;
}

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

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: var(--transition);
}

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

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-item:hover {
    background-color: rgba(0, 100, 0, 0.05);
    color: var(--verde-primary);
}

/* Footer */
.footer {
    background: var(--verde-gradient);
    color: white;
    border-top: none;
    margin-top: 2rem;
}

/* Traffic Light System */
.traffic-light {
    font-size: 1.5rem;
    display: inline-block;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Status Badges */
.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-approved {
    background-color: var(--verde-primary);
}

.status-rejected {
    background-color: #dc3545;
}

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

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .badge {
        font-size: 0.7em;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
    }
    
    .traffic-light {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    body {
        padding-top: 0;
        background-color: white;
    }
}

/* Accessibility Enhancements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--verde-light);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --verde-primary: #004d00;
        --verde-light: #008000;
    }
    
    .card {
        border: 1px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* Animation for cards */
.card-animate {
    animation: slideInUp 0.3s ease-out;
}

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

/* Utility Classes */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.15s ease-in-out;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Custom form validation */
.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: var(--verde-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 0, 0.25);
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: #f8f9fa;
}

/* Toast notifications */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Custom select styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23006400' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Spinner for loading states */
.spinner-border-verde {
    color: var(--verde-primary);
}

/* Enhanced focus styles for better accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--verde-light);
    outline-offset: 2px;
}

/* Custom tooltip styling */
.tooltip-inner {
    background-color: var(--verde-primary);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--verde-primary);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: var(--verde-primary);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: var(--verde-primary);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: var(--verde-primary);
}

/* Enhanced Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    box-shadow: var(--box-shadow);
    font-weight: 500;
    transition: var(--transition);
}

.alert-success {
    border-left-color: var(--verde-primary);
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Enhanced Table Styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: white;
}

.table thead th {
    background: var(--verde-gradient);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: var(--transition);
    border: none;
}

.table tbody tr:hover {
    background-color: rgba(0, 204, 102, 0.05);
    transform: scale(1.005);
}

.table tbody td {
    border-color: #f1f3f4;
    padding: 1rem;
    vertical-align: middle;
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 100, 0, 0.2);
}

.navbar-brand {
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Enhanced Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--verde-light);
    color: white;
    transform: translateX(5px);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Progress Indicators */
.progress {
    border-radius: var(--border-radius);
    background-color: #e9ecef;
    height: 0.5rem;
}

.progress-bar {
    background: var(--verde-gradient);
    transition: width 0.6s ease;
}

/* Enhanced Pagination */
.pagination .page-link {
    border: none;
    color: var(--verde-primary);
    font-weight: 500;
    margin: 0 0.125rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--verde-light);
    color: white;
    transform: translateY(-1px);
}

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

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--verde-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 100, 0, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
    color: white;
}

.fab:focus {
    box-shadow: 0 6px 20px rgba(0, 100, 0, 0.4);
    color: white;
}

.fab-container .dropdown-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    min-width: 200px;
}

/* Enhanced Status Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

.badge-pending {
    background-color: #ffc107;
    color: #212529;
}

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

.badge-rejected {
    background-color: #dc3545;
    color: white;
}

/* Icon Background for Stats Cards */
.icon-bg {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-bg:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Breadcrumb Enhancements */
.breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 100, 0, 0.1);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--verde-primary);
    content: "›";
    font-weight: bold;
}

.breadcrumb-item.active {
    color: var(--verde-primary);
    font-weight: 600;
}

/* Enhanced Stats Cards */
.stats-card {
    background: var(--verde-gradient);
    border: none;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.stats-card:hover::before {
    transform: translateX(100%);
}

/* Counter Animation for Numbers */
.counter-animation {
    transition: all 0.3s ease;
}

/* Form Enhancements */
.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.form-control:hover {
    border-color: var(--verde-light);
}

/* Button Loading State Enhancements */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Tooltips */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Smooth Page Transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--verde-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 204, 102, 0.15);
}

/* Smart Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

.notification {
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .fab,
    .btn {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}
