/* 
 * Custom Admin Styles - Federación de Rodeo
 * Paleta de Colores:
 * Rojo: #DD3300
 * Negro: #000000
 * Blanco: #F1F1E9
 * Azul: #033266
 */

:root {
    --color-rojo: #DD3300;
    --color-negro: #000000;
    --color-blanco: #F1F1E9;
    --color-azul: #033266;
    --color-azul-hover: #044a99;
    --color-rojo-hover: #ff4411;
}

/* ========================================
   HEADER - Menú Horizontal Estilo Apple iOS
   ======================================== */
.app-header {
    background: #033266 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 0 30px !important;
}

.app-header .navbar-brand {
    margin: 0;
}

.app-header .navbar-brand span {
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: -0.3px;
    font-size: 1.1rem;
}

/* Navegación Horizontal */
.horizontal-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.horizontal-nav .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.horizontal-nav .nav-item {
    list-style: none;
}

.horizontal-nav .nav-link {
    color: #ffffff !important;
    transition: all 0.2s ease;
    padding: 8px 16px !important;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.horizontal-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

.horizontal-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.horizontal-nav .nav-link i {
    font-size: 0.9rem;
}

/* Dropdowns en el menú horizontal */
.horizontal-nav .dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    padding: 8px 0;
}

.horizontal-nav .dropdown-item {
    color: #1d1d1f;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.horizontal-nav .dropdown-item:hover {
    background: rgba(3, 50, 102, 0.06);
    color: var(--color-azul);
}

.horizontal-nav .dropdown-toggle::after {
    margin-left: 6px;
    font-size: 0.7rem;
}

.horizontal-nav .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ========================================
   SIDEBAR - OCULTAR (ya no se usa)
   ======================================== */
.sidebar {
    display: none !important;
}

.sidebar .nav-title {
    color: #86868b;
    background: transparent;
    border-left: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 16px 20px 8px 20px;
    margin: 0;
}

.sidebar .nav-link {
    color: #1d1d1f !important;
    transition: all 0.2s ease;
    border-left: none;
    padding: 10px 16px;
    font-weight: 400;
    font-size: 0.95rem;
    border-radius: 8px;
    margin: 2px 8px;
}

.sidebar .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-azul) !important;
}

.sidebar .nav-link.active {
    background: var(--color-azul);
    color: #fff !important;
    font-weight: 500;
}

.sidebar .nav-icon {
    color: #86868b;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link.active .nav-icon {
    color: #fff;
}

.sidebar .nav-dropdown-toggle::after {
    border-color: #86868b;
}

.sidebar .nav-dropdown.open > .nav-dropdown-toggle {
    background: transparent;
    border-left: none;
}

.sidebar .nav-dropdown-items {
    background: transparent;
    margin-left: 8px;
}

.sidebar .nav-dropdown-items .nav-link {
    padding-left: 32px;
    font-size: 0.9rem;
    font-weight: 400;
}

.sidebar .sidebar-minimizer {
    background: var(--color-azul);
    border-top: 2px solid rgba(221, 51, 0, 0.3);
    transition: all 0.3s ease;
}

.sidebar .sidebar-minimizer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.sidebar .sidebar-minimizer:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar .badge {
    background-color: var(--color-rojo) !important;
    color: white;
    font-weight: 500;
    border-radius: 10px;
    padding: 2px 8px;
}

.sidebar .divider {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 8px 16px;
}

/* ========================================
   BREADCRUMB - Estilo Apple iOS
   ======================================== */
.breadcrumb {
    background: transparent;
    border-radius: 0;
    padding: 12px 0;
    box-shadow: none;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.breadcrumb-item a {
    color: var(--color-azul);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-azul-hover);
}

.breadcrumb-item.active {
    color: #1d1d1f;
    font-weight: 400;
}

/* ========================================
   CARDS - Estilo Apple iOS
   ======================================== */
.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: var(--color-azul);
    color: white;
    border-bottom: none;
    padding: 18px 24px;
    font-weight: 400;
    font-size: 1.05rem;
}

.card-header i {
    color: white;
    margin-right: 10px;
    font-size: 1rem;
}

.card-body {
    padding: 24px;
    background: white;
}

/* ========================================
   BOTONES - Estilo Apple iOS
   ======================================== */
.btn-primary {
    background: var(--color-azul);
    border: none;
    color: white;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--color-azul-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(3, 50, 102, 0.2);
}

.btn-danger {
    background: #ff3b30;
    border: none;
    color: white;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ff2d20;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2);
}

.btn-success {
    background: #34c759;
    border: none;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: #30d158;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #8e8e93;
    border: none;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #636366;
}

/* ========================================
   BADGES
   ======================================== */
.badge-primary {
    background: var(--color-azul) !important;
    color: white;
    font-weight: 600;
}

.badge-danger {
    background: var(--color-rojo) !important;
    color: white;
    font-weight: 600;
}

/* ========================================
   DATATABLES
   ======================================== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid rgba(3, 50, 102, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 0.2rem rgba(3, 50, 102, 0.15);
}

.table thead th {
    background: #033266;
    color: var(--color-blanco);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 16px 12px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(3, 50, 102, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(241, 241, 233, 0.3);
}

.table td {
    vertical-align: middle;
    padding: 12px;
}

/* Tabla de inscritos - MEJOR CONTRASTE */
.child-row-content {
    padding: 20px;
    background: white;
    border-left: 4px solid var(--color-rojo);
    border-radius: 0;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.child-row-content h6 {
    color: var(--color-negro);
    background: var(--color-blanco);
    padding: 10px 15px;
    font-weight: 600;
    margin: -20px -20px 16px -20px;
    border-bottom: 2px solid var(--color-rojo);
}

.child-row-content .table {
    margin-bottom: 0;
}

.child-row-content .table thead th {
    background: var(--color-negro);
    color: var(--color-blanco);
    font-size: 0.8rem;
    padding: 10px 8px;
}

.child-row-content .table tbody tr:hover {
    background: rgba(221, 51, 0, 0.05);
}

/* ========================================
   FILTROS Y PANEL DE BÚSQUEDA
   ======================================== */
.filter-panel {
    background: var(--color-blanco);
    border: 2px solid var(--color-azul);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-panel .form-control {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.filter-panel .form-control:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 0.2rem rgba(3, 50, 102, 0.15);
}

.filter-panel label {
    color: var(--color-negro);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-panel h6 {
    color: var(--color-azul);
    font-weight: 600;
}

/* ========================================
   ALERTAS
   ======================================== */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: rgba(221, 51, 0, 0.1);
    border-left-color: var(--color-rojo);
    color: #721c24;
}

.alert-info {
    background: rgba(3, 50, 102, 0.1);
    border-left-color: var(--color-azul);
    color: #004085;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #856404;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    background: var(--color-blanco);
}

.main .container-fluid {
    padding: 24px;
}

/* ========================================
   FOOTER
   ======================================== */
.app-footer {
    background: #033266;
    color: var(--color-blanco);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    font-size: 0.9rem;
}

.app-footer a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.app-footer a:hover {
    color: white;
}

/* ========================================
   ICONOS DE ACCIÓN
   ======================================== */
.details-control {
    cursor: pointer;
    color: var(--color-azul);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.details-control:hover {
    color: var(--color-rojo);
    transform: scale(1.2);
}

.fa-plus-circle {
    color: var(--color-azul);
}

.fa-minus-circle {
    color: var(--color-rojo);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .app-header .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .card-header {
        font-size: 1rem;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated.fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-primary-custom {
    color: var(--color-azul) !important;
}

.text-danger-custom {
    color: var(--color-rojo) !important;
}

.bg-primary-custom {
    background-color: var(--color-azul) !important;
}

.bg-danger-custom {
    background-color: var(--color-rojo) !important;
}

.border-primary-custom {
    border-color: var(--color-azul) !important;
}

.border-danger-custom {
    border-color: var(--color-rojo) !important;
}

/* ========================================
   HEADER - Minimalista
   ======================================== */
.app-header {
    background: #033266 !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    height: 56px;
    padding: 0 30px !important;
}

.app-header .navbar-brand span {
    color: var(--color-blanco) !important;
    font-weight: 600;
    letter-spacing: -0.3px;
    font-size: 1rem;
}

.app-header .navbar-toggler {
    color: var(--color-blanco);
    border: none;
    padding: 8px;
}

.app-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(241, 241, 233, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.app-header .nav-link {
    color: rgba(241, 241, 233, 0.85) !important;
    transition: var(--transition);
    padding: 6px 12px !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-blanco) !important;
}

/* ========================================
   SIDEBAR - Compacto
   ======================================== */
.sidebar {
    background: var(--color-azul);
    box-shadow: none;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar .nav-title {
    color: rgba(241, 241, 233, 0.5);
    background: transparent;
    border-left: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    padding: 16px 20px 8px 20px;
    margin: 0;
}

.sidebar .nav-link {
    color: rgba(241, 241, 233, 0.75) !important;
    transition: var(--transition);
    border-left: 2px solid transparent;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-rojo);
    color: var(--color-blanco) !important;
}

.sidebar .nav-link.active {
    background: rgba(221, 51, 0, 0.1);
    border-left-color: var(--color-rojo);
    color: var(--color-blanco) !important;
    font-weight: 600;
}

.sidebar .nav-icon {
    color: rgba(241, 241, 233, 0.6);
    margin-right: 10px;
    width: 18px;
    font-size: 0.9rem;
    text-align: center;
}

.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link.active .nav-icon {
    color: var(--color-rojo);
}

.sidebar .nav-dropdown-toggle::after {
    border-color: rgba(241, 241, 233, 0.5);
}

.sidebar .nav-dropdown.open > .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--color-rojo);
}

.sidebar .nav-dropdown-items {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar .nav-dropdown-items .nav-link {
    padding: 8px 20px 8px 48px;
    font-size: 0.85rem;
}

.sidebar .sidebar-minimizer {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 40px;
}

.sidebar .sidebar-minimizer:hover {
    background: var(--color-rojo);
}

.sidebar .badge {
    background-color: var(--color-rojo) !important;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 2px 6px;
}

.sidebar .divider {
    border-top: 1px solid rgba(241, 241, 233, 0.06);
    margin: 8px 16px;
}

/* ========================================
   BREADCRUMB - Minimalista
   ======================================== */
.breadcrumb {
    background: transparent;
    border-radius: 0;
    padding: 12px 0;
    box-shadow: none;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--color-azul);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--color-rojo);
}

.breadcrumb-item.active {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

/* ========================================
   CARDS - iOS Style
   ======================================== */
.card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: #033266;
    color: white;
    border-bottom: none;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

.card-header i {
    color: white;
    margin-right: 8px;
    font-size: 0.95rem;
}

.card-body {
    padding: 20px;
    background: white;
}

/* ========================================
   BOTONES - Minimalistas
   ======================================== */
.btn {
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 7px;
    transition: var(--transition);
    border: none;
    font-size: 0.875rem;
    letter-spacing: -0.1px;
}

.btn-primary {
    background: var(--color-azul);
    color: var(--color-blanco);
    box-shadow: 0 1px 2px rgba(3, 50, 102, 0.15);
}

.btn-primary:hover {
    background: var(--color-azul-hover);
    box-shadow: 0 2px 4px rgba(3, 50, 102, 0.2);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-rojo);
    color: white;
    box-shadow: 0 1px 2px rgba(221, 51, 0, 0.15);
}

.btn-danger:hover {
    background: var(--color-rojo-hover);
    box-shadow: 0 2px 4px rgba(221, 51, 0, 0.2);
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: white;
    box-shadow: 0 1px 2px rgba(40, 167, 69, 0.15);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 1px 2px rgba(108, 117, 125, 0.15);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

/* ========================================
   BADGES - Compactos
   ======================================== */
.badge {
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0;
}

.badge-primary {
    background: var(--color-azul) !important;
}

.badge-danger {
    background: var(--color-rojo) !important;
}

.badge-secondary {
    background: #6c757d !important;
}

.badge-warning {
    background: #ffc107 !important;
    color: #000 !important;
}

.badge-sm {
    padding: 2px 6px;
    font-size: 0.7rem;
}

/* ========================================
   DATATABLES - Limpio
   ======================================== */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    padding: 6px 12px;
    transition: var(--transition);
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 3px rgba(3, 50, 102, 0.08);
    outline: none;
}

.table {
    font-size: 0.875rem;
}

.table thead th {
    background: #033266;
    color: white;
    font-weight: 500;
    text-transform: none;
    font-size: 0.85rem;
    letter-spacing: 0;
    border: none;
    padding: 14px 12px;
    vertical-align: middle;
}

.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table tbody tr:hover {
    background: rgba(3, 50, 102, 0.02);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(241, 241, 233, 0.15);
}

.table td {
    vertical-align: middle;
    padding: 10px;
    font-size: 0.85rem;
}

/* Tabla de inscritos - Compacta */
.child-row-content {
    padding: 16px;
    background: rgba(241, 241, 233, 0.3);
    border-left: 3px solid var(--color-rojo);
    border-radius: 0;
    margin: 0;
}

.child-row-content h6 {
    color: var(--color-azul);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.child-row-content .table thead th {
    background: #033266;
    font-size: 0.75rem;
    padding: 8px 6px;
}

.child-row-content .table tbody tr:hover {
    background: rgba(221, 51, 0, 0.03);
}

.child-row-content .table td {
    padding: 8px 6px;
    font-size: 0.8rem;
}

/* ========================================
   FILTROS - Minimalista
   ======================================== */
.filter-panel {
    background: rgba(241, 241, 233, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: none;
}

.filter-panel .form-control {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    padding: 7px 12px;
    transition: var(--transition);
    font-size: 0.875rem;
}

.filter-panel .form-control:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 3px rgba(3, 50, 102, 0.08);
    outline: none;
}

.filter-panel label {
    color: var(--color-azul);
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 4px;
}

.filter-panel .form-group {
    margin-bottom: 12px;
}

/* ========================================
   ESTADÍSTICAS - Compactas
   ======================================== */
.stats-card {
    background: var(--color-azul);
    border-radius: 10px;
    padding: 16px;
    color: white;
    box-shadow: 0 1px 3px rgba(3, 50, 102, 0.15);
    transition: var(--transition);
    border: none;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 50, 102, 0.2);
}

.stats-card.stats-reprogramados {
    background: #ff9800;
}

.stats-card.stats-conflictos {
    background: var(--color-rojo);
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.stats-card p {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.9;
    font-weight: 500;
}

.stats-card i {
    font-size: 1.5rem;
    opacity: 0.7;
}

/* ========================================
   ALERTAS - Minimalistas
   ======================================== */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 3px solid;
    font-weight: 500;
    padding: 10px 16px;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.08);
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: rgba(221, 51, 0, 0.08);
    border-left-color: var(--color-rojo);
    color: #721c24;
}

.alert-info {
    background: rgba(3, 50, 102, 0.08);
    border-left-color: var(--color-azul);
    color: #004085;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.08);
    border-left-color: #ffc107;
    color: #856404;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    background: var(--color-blanco);
}

.main .container-fluid {
    padding: 20px;
}

/* ========================================
   FOOTER - Minimalista
   ======================================== */
.app-footer {
    background: var(--color-azul);
    color: rgba(241, 241, 233, 0.85);
    border-top: 1px solid rgba(221, 51, 0, 0.2);
    padding: 10px 20px;
    font-size: 0.8125rem;
}

.app-footer a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.app-footer a:hover {
    color: white;
}

/* ========================================
   ICONOS DE ACCIÓN
   ======================================== */
.details-control {
    cursor: pointer;
    color: var(--color-azul);
    font-size: 1.1rem;
    transition: var(--transition);
}

.details-control:hover {
    color: var(--color-rojo);
    transform: scale(1.15);
}

.fa-plus-circle {
    color: var(--color-azul);
}

.fa-minus-circle {
    color: var(--color-rojo);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .app-header {
        height: 52px;
        padding: 0 12px !important;
    }
    
    .app-header .navbar-brand span {
        font-size: 0.875rem;
    }
    
    .stats-card h3 {
        font-size: 1.75rem;
    }
    
    .card-header {
        font-size: 0.9375rem;
        padding: 12px 16px;
    }
    
    .main .container-fluid {
        padding: 16px;
    }
}

/* ========================================
   ANIMACIONES - Suaves
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated.fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-primary-custom {
    color: var(--color-azul) !important;
}

.text-danger-custom {
    color: var(--color-rojo) !important;
}

.bg-primary-custom {
    background-color: var(--color-azul) !important;
}

.bg-danger-custom {
    background-color: var(--color-rojo) !important;
}

.border-primary-custom {
    border-color: var(--color-azul) !important;
}

.border-danger-custom {
    border-color: var(--color-rojo) !important;
}

/* ========================================
   ESPACIADO OPTIMIZADO
   ======================================== */
.mb-compact {
    margin-bottom: 12px !important;
}

.mt-compact {
    margin-top: 12px !important;
}

.p-compact {
    padding: 12px !important;
}




.app-header .dropdown-item.text-danger {
    color: var(--color-rojo) !important;
    font-weight: 600;
}

.app-header .dropdown-item.text-danger:hover {
    background-color: rgba(221, 51, 0, 0.1);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    background: linear-gradient(180deg, #011f3d 0%, var(--color-azul) 100%);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-title {
    color: var(--color-blanco);
    background: rgba(221, 51, 0, 0.15);
    border-left: 3px solid var(--color-rojo);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 12px 20px;
    margin: 8px 0;
}

.sidebar .nav-link {
    color: rgba(241, 241, 233, 0.85) !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding: 12px 20px;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--color-rojo);
    color: var(--color-blanco) !important;
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(221, 51, 0, 0.25) 0%, rgba(221, 51, 0, 0.1) 100%);
    border-left-color: var(--color-rojo);
    color: var(--color-blanco) !important;
    font-weight: 600;
}

.sidebar .nav-icon {
    color: rgba(241, 241, 233, 0.7);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover .nav-icon,
.sidebar .nav-link.active .nav-icon {
    color: var(--color-rojo);
}

.sidebar .nav-dropdown-toggle::after {
    border-color: rgba(241, 241, 233, 0.6);
}

.sidebar .nav-dropdown.open > .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-rojo);
}

.sidebar .nav-dropdown-items {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar .nav-dropdown-items .nav-link {
    padding-left: 52px;
    font-size: 0.9rem;
}

.sidebar .sidebar-minimizer {
    background: var(--color-azul);
    border-top: 2px solid rgba(221, 51, 0, 0.3);
    transition: all 0.3s ease;
}

.sidebar .sidebar-minimizer:hover {
    background: var(--color-rojo);
}

.sidebar .badge {
    background-color: var(--color-rojo) !important;
    color: white;
    font-weight: 600;
}

.sidebar .divider {
    border-top: 1px solid rgba(241, 241, 233, 0.1);
    margin: 8px 16px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: var(--color-blanco);
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--color-azul);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-rojo);
}

.breadcrumb-item.active {
    color: var(--color-negro);
    font-weight: 600;
}

/* ========================================
   CARDS Y CONTENIDO PRINCIPAL
   ======================================== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: #033266;
    color: white;
    border: none;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 1.05rem;
}

.card-header i {
    color: white;
    margin-right: 8px;
}

.card-body {
    padding: 24px;
    background: white;
}

/* ========================================
   BOTONES
   ======================================== */
.btn-primary {
    background: var(--color-rojo);
    border: none;
    color: var(--color-blanco);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(3, 50, 102, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #044a99 0%, var(--color-azul) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 50, 102, 0.4);
}

.btn-danger {
    background: var(--color-rojo);
    border: none;
    color: white;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(221, 51, 0, 0.3);
}

.btn-danger:hover {
    background: var(--color-rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(221, 51, 0, 0.4);
}

.btn-success {
    background: #28a745;
    border: none;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
}

/* ========================================
   BADGES
   ======================================== */
.badge-primary {
    background: var(--color-azul) !important;
    color: white;
    font-weight: 600;
}

.badge-danger {
    background: var(--color-rojo) !important;
    color: white;
    font-weight: 600;
}

/* ========================================
   DATATABLES
   ======================================== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid rgba(3, 50, 102, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 0.2rem rgba(3, 50, 102, 0.15);
}

.table thead th {
    background: #033266;
    color: var(--color-blanco);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 16px 12px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(3, 50, 102, 0.05);
    transform: scale(1.01);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(241, 241, 233, 0.3);
}

.table td {
    vertical-align: middle;
    padding: 12px;
}

/* Tabla de inscritos */
.child-row-content {
    padding: 20px;
    background: linear-gradient(135deg, rgba(241, 241, 233, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-left: 4px solid var(--color-rojo);
    border-radius: 8px;
    margin: 10px;
}

.child-row-content h6 {
    color: var(--color-azul);
    font-weight: 600;
    margin-bottom: 16px;
}

.child-row-content .table thead th {
    background: #033266;
    font-size: 0.8rem;
    padding: 10px 8px;
}

.child-row-content .table tbody tr:hover {
    background: rgba(221, 51, 0, 0.05);
}

/* ========================================
   FILTROS Y PANEL DE BÚSQUEDA
   ======================================== */
.filter-panel {
    background: linear-gradient(135deg, rgba(241, 241, 233, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid rgba(3, 50, 102, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-panel .form-control {
    border: 2px solid rgba(3, 50, 102, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.filter-panel .form-control:focus {
    border-color: var(--color-azul);
    box-shadow: 0 0 0 0.2rem rgba(3, 50, 102, 0.15);
}

.filter-panel label {
    color: var(--color-azul);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */
.stats-card {
    background: var(--color-rojo);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 6px 16px rgba(3, 50, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(3, 50, 102, 0.4);
}

.stats-card.stats-reprogramados {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3);
}

.stats-card.stats-conflictos {
    background: linear-gradient(135deg, var(--color-rojo) 0%, #ff4411 100%);
    box-shadow: 0 6px 16px rgba(221, 51, 0, 0.3);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stats-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
}

.stats-card i {
    font-size: 2rem;
    opacity: 0.8;
}

/* ========================================
   ALERTAS
   ======================================== */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: rgba(221, 51, 0, 0.1);
    border-left-color: var(--color-rojo);
    color: #721c24;
}

.alert-info {
    background: rgba(3, 50, 102, 0.1);
    border-left-color: var(--color-azul);
    color: #004085;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #856404;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main {
    background: var(--color-blanco);
}

.main .container-fluid {
    padding: 24px;
}

/* ========================================
   FOOTER
   ======================================== */
.app-footer {
    background: #033266;
    color: var(--color-blanco);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    font-size: 0.9rem;
}

.app-footer a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.app-footer a:hover {
    color: white;
}

/* ========================================
   ICONOS DE ACCIÓN
   ======================================== */
.details-control {
    cursor: pointer;
    color: var(--color-azul);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.details-control:hover {
    color: var(--color-rojo);
    transform: scale(1.2);
}

.fa-plus-circle {
    color: var(--color-azul);
}

.fa-minus-circle {
    color: var(--color-rojo);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .app-header .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .card-header {
        font-size: 1rem;
    }
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated.fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-primary-custom {
    color: var(--color-azul) !important;
}

.text-danger-custom {
    color: var(--color-rojo) !important;
}

.bg-primary-custom {
    background-color: var(--color-azul) !important;
}

.bg-danger-custom {
    background-color: var(--color-rojo) !important;
}

.border-primary-custom {
    border-color: var(--color-azul) !important;
}

.border-danger-custom {
    border-color: var(--color-rojo) !important;
}

 
 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
 
       M E J O R A S   E N   B O T O N E S   D E   A C C I O N E S 
 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 
 . b t n - g r o u p - s m   . b t n   { 
 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ; 
 
 } 
 
 
 
 . b t n - g r o u p - s m   . b t n : h o v e r   { 
 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
 
         b o x - s h a d o w :   0   4 p x   8 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 2 ) ; 
 
 } 
 
 
 
 . b t n - g r o u p - s m   . b t n   i   { 
 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
 
 } 
 
 
 
 . b t n - g r o u p - s m   . b t n : h o v e r   i   { 
 
         t r a n s f o r m :   s c a l e ( 1 . 1 5 ) ; 
 
 } 
 
 

/* MEJORAS EN BOTONES DE ACCIONES */
.btn-group-sm .btn { transition: all 0.3s ease; }
.btn-group-sm .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.btn-group-sm .btn i { transition: all 0.2s ease; }
.btn-group-sm .btn:hover i { transform: scale(1.15); }


/* ESTILOS PARA PANEL DE BUSCADORES SEPARADOS */
.filter-panel { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.filter-panel .row { margin: 0; }
.filter-panel .col-md-6 { padding: 0 10px; }









/* ========================================
   LAYOUT - Usar todo el ancho (sin sidebar)
   ======================================== */
.app-body {
    margin-left: 0 !important;
}

.main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.main .container-fluid {
    max-width: 100%;
    padding: 30px 40px;
}

@media (max-width: 768px) {
    .main .container-fluid {
        padding: 20px;
    }
}


/* Header y Footer ancho completo */
.app-header, .app-footer {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
}

.app-header {
    position: fixed;
    top: 0;
    z-index: 1030;
}

.app-body {
    padding-top: 56px;
    padding-bottom: 60px;
}

.app-footer {
    position: relative;
    padding: 14px 40px;
}


/* Ocultar breadcrumbs */
.breadcrumb {
    display: none !important;
}

.main {
    padding-top: 15px !important;
}


/* Eliminar recuadro gris del breadcrumb */
.main {
    background: transparent !important;
    padding-top: 0 !important;
}

.main .container-fluid {
    padding-top: 20px !important;
    background: transparent !important;
}

.animated.fadeIn {
    background: transparent !important;
}

.content-header {
    display: none !important;
}


/* Reducir espacio entre header y contenido */
.app-body {
    padding-top: 56px !important;
}

.main .container-fluid {
    padding-top: 8px !important;
}

.filter-panel {
    margin-top: 0 !important;
}


/* Letras del men� en blanco puro */
.app-header .nav-link {
    color: #ffffff !important;
    opacity: 1 !important;
}

.app-header .nav-link:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

.horizontal-nav .nav-link {
    color: #ffffff !important;
    opacity: 1 !important;
}

.app-header .navbar-nav .nav-link {
    color: #ffffff !important;
    opacity: 1 !important;
}


/* Ajustar posici�n del logo */
.app-header .navbar-brand {
    margin-left: 20px !important;
    padding-left: 10px !important;
}


/* Ocultar buscador de DataTables */
.dataTables_filter {
    display: none !important;
}

div.dataTables_wrapper div.dataTables_filter {
    display: none !important;
}


/* Eliminar efectos hover en tabla de inscritos */
.tabla-inscritos tbody tr {
    transition: none !important;
    transform: none !important;
}

.tabla-inscritos tbody tr:hover {
    background-color: transparent !important;
    transform: none !important;
}


/* Forzar eliminaci�n de efectos hover en tabla de inscritos */
.tabla-inscritos tbody tr:hover td {
    background-color: inherit !important;
    transform: none !important;
}

.tabla-inscritos tbody tr:hover {
    background-color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

.table-striped .tabla-inscritos tbody tr:nth-of-type(odd):hover {
    background-color: rgba(0,0,0,.05) !important;
}

.table-striped .tabla-inscritos tbody tr:nth-of-type(even):hover {
    background-color: transparent !important;
}


/* Eliminar efectos hover en tabla principal de rodeos */
#tablaJinetes tbody tr {
    transition: none !important;
    transform: none !important;
}

#tablaJinetes tbody tr:hover {
    background-color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
}

#tablaJinetes tbody tr:hover td {
    background-color: inherit !important;
    transform: none !important;
}

.table-striped#tablaJinetes tbody tr:nth-of-type(odd):hover {
    background-color: rgba(0,0,0,.05) !important;
}

.table-striped#tablaJinetes tbody tr:nth-of-type(even):hover {
    background-color: transparent !important;
}
/* Fila seleccionada en búsqueda de colleras */
.tabla-inscritos tbody tr.fila-seleccionada {
    background-color: #fff3cd !important;
    border-left: 4px solid #DD3300 !important;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px rgba(221, 51, 0, 0.2);
}

.tabla-inscritos tbody tr.fila-seleccionada:hover {
    background-color: #ffe8b6 !important;
}