/* Navegantes del Magallanes - Custom Styles */

:root {
    --primary-color: #003d82;
    --primary-dark: #002a5c;
    --primary-light: #0056b3;
    --accent-color: #ffd700;
}

/* Override Bootstrap primary colors */
.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);
}

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

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

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

/* Custom navbar styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--accent-color);
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
    pointer-events: none; /* Add this line to allow clicks through the pseudo-element */
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    100% { transform: translateY(-100px) translateX(-100px); }
}

/* Stats cards */
.stats-card {
    border-left: 4px solid var(--primary-color);
}

.stats-card .display-4 {
    color: var(--primary-color);
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 130, 0.25);
}

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

/* Table enhancements */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
}

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

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

/* Custom utilities */
.text-accent {
    color: var(--accent-color) !important;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Smooth transitions */
* {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* Footer styling */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Error pages */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .pagination {
        display: none !important;
    }
}