/**
 * Sistema de Layout Personalizado
 * Configuración para elementos internos con col-11 centrado
 */

/* Contenedor principal con col-11 centrado */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.container-fluid .row {
    justify-content: center;
}

.container-fluid .col-11 {
    max-width: 91.666667%;
    flex: 0 0 91.666667%;
}

/* Ajustes para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
    .container-fluid .col-11 {
        max-width: 95%;
        flex: 0 0 95%;
    }
}

@media (max-width: 768px) {
    .container-fluid .col-11 {
        max-width: 98%;
        flex: 0 0 98%;
    }
}

@media (max-width: 576px) {
    .container-fluid .col-11 {
        max-width: 100%;
        flex: 0 0 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Sistema de navegación */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Footer personalizado */
.footer {
    margin-top: auto;
}

.footer.bg-dark {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
}

.footer.bg-light {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.scroll-top i {
    font-size: 1.5rem;
}

/* Ajustes para contenido principal */
.main-content {
    min-height: calc(100vh - 160px); /* 100vh - navbar height - footer height */
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Ajustes para formularios */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-container .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
}

/* Ajustes para tablas */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Ajustes para modales */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 15px 15px;
}

/* Ajustes para botones */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Ajustes para inputs */
.form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Ajustes para cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Ajustes para alertas */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #10b981;
}

.alert-danger {
    border-left-color: #ef4444;
}

.alert-warning {
    border-left-color: #f59e0b;
}

.alert-info {
    border-left-color: #3b82f6;
}

/* Ajustes para badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* Ajustes para paginación */
.pagination .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 2px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #0ea5e9;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
}

/* Ajustes para tooltips */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    border-radius: 6px;
    padding: 8px 12px;
}

/* Ajustes para popovers */
.popover {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.popover-header {
    border-bottom: 1px solid #e5e7eb;
    border-radius: 10px 10px 0 0;
    background-color: #f8fafc;
}

/* Ajustes para dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.dropdown-item {
    border-radius: 6px;
    margin: 2px 8px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    transform: translateX(3px);
}

/* Ajustes para navegación por tabs */
.nav-tabs {
    border-bottom: 2px solid #e5e7eb;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    color: #6b7280;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #0ea5e9;
}

.nav-tabs .nav-link.active {
    color: #0ea5e9;
    border-bottom: 3px solid #0ea5e9;
    background-color: transparent;
}

/* Ajustes para breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #9ca3af;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0ea5e9;
}

/* Ajustes para listas */
.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8fafc;
    transform: translateX(3px);
}

/* Ajustes para progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e5e7eb;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Ajustes para spinners */
.spinner-border {
    border-width: 2px;
}

.spinner-border-sm {
    border-width: 1.5px;
}

/* Ajustes para imágenes */
.img-fluid {
    border-radius: 10px;
}

.img-thumbnail {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

/* Ajustes para figuras */
.figure {
    border-radius: 10px;
    overflow: hidden;
}

.figure-caption {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Ajustes para blockquotes */
.blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4b5563;
}

.blockquote-footer {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 10px;
}

/* Ajustes para código */
code {
    background-color: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

/* Ajustes para tablas de datos */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8fafc;
    border: none;
    font-weight: 600;
    color: #374151;
    padding: 15px;
}

.table tbody td {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Ajustes para formularios de búsqueda */
.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 50px;
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
    padding: 8px 12px;
}

/* Ajustes para filtros */
.filter-container {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.filter-container .form-group {
    margin-bottom: 15px;
}

/* Ajustes para estadísticas */
.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 10px;
}

.stats-card .stats-label {
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ajustes para gráficos */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Ajustes para notificaciones */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajustes para estados de carga */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
}

/* Ajustes para mensajes de error */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.error-message::before {
    content: "⚠️ ";
    margin-right: 8px;
}

/* Ajustes para mensajes de éxito */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.success-message::before {
    content: "✅ ";
    margin-right: 8px;
}

/* Ajustes para mensajes de información */
.info-message {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.info-message::before {
    content: "ℹ️ ";
    margin-right: 8px;
}

/* Ajustes para mensajes de advertencia */
.warning-message {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.warning-message::before {
    content: "⚠️ ";
    margin-right: 8px;
}
