/* OfexAI.cl - Estilos personalizados */

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --font-family: 'Inter', sans-serif;
}

/* General */
body {
    font-family: var(--font-family);
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.auth-page-container {
    padding-top: 1.75rem;
    padding-bottom: 2.25rem;
}

@media (max-width: 768px) {
    .auth-page-container {
        padding-top: 1.25rem;
        padding-bottom: 1.75rem;
    }
}

/* Navbar */
.navbar-brand {
    letter-spacing: -0.5px;
}

.ofex-navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.95);
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ofex-navbar.scrolled {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.98);
    border-bottom-color: rgba(255, 255, 255, 0.28);
}

.ofex-brand {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    color: #ffffff !important;
}

.ofex-brand i {
    margin-right: 0.35rem;
    color: #ffffff !important;
}

.ofex-nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 0.9rem !important;
    transition: all 0.2s ease;
}

.ofex-nav-link:hover,
.ofex-nav-link:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
}

.ofex-navbar-cta {
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
    background: #ffffff !important;
    color: var(--primary-color) !important;
}

.ofex-navbar-cta i {
    margin-right: 0.35rem;
}

.ofex-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.ofex-navbar .navbar-toggler-icon {
    filter: invert(1) brightness(200%);
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

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

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.625rem 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control-color {
    padding: 0.375rem;
    height: 45px;
}

/* Upload zone */
.upload-zone {
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.02) !important;
}

.upload-zone.border-primary {
    border-color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.05) !important;
}

/* Progress bars */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Tables */
.table {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

/* List groups */
.list-group-item {
    border: none;
    padding: 1rem 1.25rem;
}

.list-group-item:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #f1f3f5;
}

.modal-footer {
    border-top: 1px solid #f1f3f5;
}

/* Pagination */
.page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    color: #495057;
}

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

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Footer */
footer {
    margin-top: auto;
}

footer.bg-dark .text-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

footer.bg-dark a.text-muted {
    color: rgba(255, 255, 255, 0.84) !important;
}

footer.bg-dark a.text-muted:hover,
footer.bg-dark a.text-muted:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}

footer.bg-dark hr.bg-secondary {
    border-color: rgba(255, 255, 255, 0.22) !important;
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-6 {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}
