/* Splash screen */
#splash {
    position: fixed;
    inset: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
#splash .splash-content {
    text-align: center;
}
#splash .splash-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}
html, body {
    height: 100%;
}
body {
    background: #FFD13D;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 80px; /* Espacio para el navbar sticky inferior */
    padding-top: 70px; /* Espacio para el navbar superior sticky */
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 0.25rem auto;
    padding: 1rem;
    max-width: 1200px;
}
/* Sin restricciones de ancho en escritorio: las columnas se adaptan */

.header {
    text-align: center;
    margin-bottom: 1rem;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.header-logo {
    height: 80px;
    margin-right: 1rem;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.header-text .fesba {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin: 0;
}

.header-text .scraper {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #E5282F;
    line-height: 1;
    margin: 0;
}

.header .subtitle {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin-top: 0.5rem;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.btn-primary {
    background: #E5282F;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 40, 47, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 40, 47, 0.6);
}

.btn-success {
    background: #FFD13D;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 209, 61, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 209, 61, 0.6);
}

.loading {
    display: none;
    text-align: center;
    margin: 2rem 0;
}

.spinner-border {
    color: #E5282F;
}

.results-container {
    margin-top: 2rem;
    display: none;
}

.stats-card {
    background: #E5282F;
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(229, 40, 47, 0.3);
}

.stats-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.matches-table {
    background: white;
    border-radius: 15px;
    overflow-x: hidden;
    overflow-y: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #E5282F;
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table tbody tr.now-playing-row {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12)) !important;
}

.table tbody tr.now-playing-row:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.18)) !important;
}

/* Fondo alternado para filas individuales usando clases específicas */
.table tbody tr.individual-bg-odd {
    background-color: white !important;
}

.table tbody tr.individual-bg-even {
    background-color: #f8f9fa !important;
}

/* Fondo alternado para filas de dobles usando clases específicas */
.table tbody tr.doubles-bg-even {
    background-color: #f8f9fa !important;
}

.table tbody tr.doubles-bg-odd {
    background-color: white !important;
}

/* Eliminar borde entre las dos filas del mismo partido de dobles */
.table tbody tr.doubles-bg-even + tr.doubles-bg-even td,
.table tbody tr.doubles-bg-odd + tr.doubles-bg-odd td {
    border-top: none !important;
}

.table tbody tr:hover {
    background-color: #FFD13D !important;
}

.mobile-table .now-playing-row {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12)) !important;
}

.mobile-details.now-playing-row .mobile-details-content {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
}

.now-playing-text {
    color: #6c757d;
    font-style: italic;
}

.player-highlight {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    line-height: 1.2;
}

/* Estilos para enlaces de jugadores: que no se vean como enlaces */
.matches-table a,
.matches-table .table a,
.matches-table .mobile-table a,
.desktop-table a,
.mobile-table a,
.table tbody td a {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    border-bottom: none !important;
}

.matches-table a:hover,
.matches-table .table a:hover,
.matches-table .mobile-table a:hover,
.desktop-table a:hover,
.mobile-table a:hover,
.table tbody td a:hover {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.matches-table a:visited,
.matches-table .table a:visited,
.matches-table .mobile-table a:visited,
.desktop-table a:visited,
.mobile-table a:visited,
.table tbody td a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

/* Asegurar que los enlaces dentro de player-highlight mantengan el estilo del texto */
.player-highlight a {
    color: inherit !important;
    text-decoration: none !important;
}

.player-highlight a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

.player-highlight-upcoming {
    background: rgba(255, 193, 7, 0.25);
    color: #7c5804;
}

.player-highlight-win {
    background: rgba(40, 167, 69, 0.25);
    color: #166534;
}

.player-highlight-loss {
    background: rgba(220, 53, 69, 0.25);
    color: #842029;
}

/* Estilos para partidos de dobles - mismo formato que individuales */

/* Estilos para versión móvil */
.mobile-row {
    cursor: default;
    transition: all 0.3s ease;
}

/* Fondo alternado para filas móviles usando clases específicas */
.mobile-table tbody tr.mobile-row-odd {
    background-color: white !important;
}

.mobile-table tbody tr.mobile-row-even {
    background-color: #f8f9fa !important;
}

/* Las filas de detalles heredan el fondo de su fila principal */
.mobile-table tbody tr.mobile-details-odd {
    background-color: white !important;
}

.mobile-table tbody tr.mobile-details-even {
    background-color: #f8f9fa !important;
}

.mobile-row:hover {
    background-color: #FFD13D !important;
    transform: scale(1.01);
}

/* Estilos para el símbolo +/- de expansión */
.expand-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #E5282F;
    cursor: pointer;
    user-select: none;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: rgba(229, 40, 47, 0.1);
}

.expand-toggle:hover {
    background-color: rgba(229, 40, 47, 0.2);
    transform: scale(1.1);
}

.mobile-time {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.mobile-time:hover {
    background-color: rgba(229, 40, 47, 0.1);
}

.time-text {
    flex: 1;
}

.mobile-details {
    display: none;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.mobile-details td {
    background-color: inherit;
}

.mobile-details.show {
    display: table-row;
}

.mobile-details td {
    padding: 0.3rem 0.5rem;
    border-top: none;
}

.mobile-details-content {
    padding: 0.75rem 0.85rem;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
    width: 100%;
    box-sizing: border-box;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    flex: 0 0 auto;
    min-width: 90px;
}

.detail-value {
    color: #6c757d;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    word-break: break-word;
}

.detail-value.oid {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #495057;
}

@media (max-width: 576px) {
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-label {
        min-width: 0;
    }

    .detail-value {
        text-align: left;
        width: 100%;
    }
}

.mobile-players {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem !important;
}

.mobile-players-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.mobile-players-team {
    flex: 1;
    text-align: center;
    line-height: 1.2;
}

/* Eliminar separación visual excesiva entre jugadores del mismo equipo en dobles */
.mobile-players-team {
    line-height: 1.1;
}

.mobile-players-team br {
    line-height: 0.3;
    margin: 0;
    padding: 0;
    display: block;
    content: "";
}

.mobile-players-vs-text {
    font-weight: bold;
    color: #667eea;
    margin: 0 0.3rem;
    font-size: 0.7rem;
}

.mobile-result {
    font-weight: 600;
    color: #28a745;
    font-size: 0.75rem;
    word-break: break-word;
    min-width: 90px !important;
    width: auto !important;
}

/* Estilos para centrar el texto "Faltan X" */
.result-pending {
    text-align: center !important;
}

.result-pending-mobile {
    display: block;
    text-align: center;
    width: 100%;
}

.mobile-time {
    font-size: 0.7rem;
    color: #6c757d;
    padding-right: 1rem !important;
}

/* Estilos específicos para celdas móviles */
.mobile-table td {
    padding: 0.4rem 0.3rem;
    vertical-align: middle;
    border: none !important;
}

.mobile-table th {
    padding: 0.5rem 0.3rem;
    font-size: 0.8rem;
    border: none !important;
}

/* Ancho mínimo para la columna de resultado en móvil */
.mobile-table th.result-header,
.mobile-table td.mobile-result {
    min-width: 90px !important;
    width: auto !important;
    max-width: none !important;
}

/* Responsive: mostrar versión móvil en pantallas pequeñas */
@media (max-width: 768px) {
    .desktop-table {
        display: none;
    }
    
    .mobile-table {
        display: table;
    }
}

/* Ajustes para menú hamburguesa: botones apilados y con separación */
@media (max-width: 768px) {
    #topNavbar .navbar-nav { align-items: stretch !important; }
    #topNavbar .navbar-nav .nav-item { width: 100%; }
    #topNavbar .navbar-nav .btn { width: 100%; margin-bottom: .5rem; }
}

@media (min-width: 769px) {
    .desktop-table {
        display: table;
        margin: 0 auto;
        width: auto;
    }
    
    .mobile-table {
        display: none;
    }
    
    /* Aplicar mismo estilo de líneas que móvil */
    .desktop-table .table {
        border-collapse: collapse;
        margin: 0 auto;
        width: auto;
    }
    
    .desktop-table .table th,
    .desktop-table .table td {
        padding: 0.4rem 0.3rem;
        font-size: 1rem;
        text-align: left;
    }
    
    /* Centrar el contenedor table-responsive */
    .table-responsive {
        text-align: center;
        width: 100%;
    }
}

/* Estilos para el modal de filtrado */
.player-item {
    padding: 0.5rem;
    margin: 0.25rem 0;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-item:hover {
    background-color: #f8f9fa;
    border-color: #E5282F;
}

.player-item.selected {
    background-color: #FFD13D;
    border-color: #E5282F;
}

.player-checkbox {
    margin-right: 0.5rem;
}

.selected-player-tag {
    display: inline-block;
    background-color: #E5282F;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    margin: 0.25rem;
    font-size: 0.8rem;
}

.selected-player-tag .remove-player {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

.filter-active {
    background-color: #FFD13D !important;
    color: #E5282F !important;
}

/* Estilos para el navbar sticky */
.navbar.sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.navbar.sticky-bottom .btn {
    min-width: 120px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar.sticky-bottom .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar.sticky-bottom .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.navbar.sticky-bottom .btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Espaciado entre botones en desktop */
@media (min-width: 769px) {
    .navbar.sticky-bottom .nav-item.filter-btn-item {
        margin-left: 1.5rem;
        margin-right: 0;
    }
    
    .navbar.sticky-bottom .nav-item.toggle-filter-btn-item {
        margin-left: 1.5rem;
        margin-right: 0;
    }
    
    .navbar.sticky-bottom .nav-item.clear-filter-btn-item {
        margin-left: 1.5rem;
        margin-right: 0;
    }
}

/* Asegurar que los botones estén en línea entre 768px y 990px */
@media (min-width: 768px) and (max-width: 990px) {
    .navbar.sticky-bottom .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .navbar.sticky-bottom .nav-item {
        flex-shrink: 0;
    }
    
    .navbar.sticky-bottom .btn {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }

	.container {
		min-height: 100dvh;
		padding-left: 0;
		padding-right: 0;
		margin: 0;
		max-width: 100vw;
	}
    
	.main-container {
		margin: 0;
		padding: 0;
		border-radius: 0;
		min-height: 100dvh;
		display: flex;
		flex-direction: column;
	}

	.results-container {
		margin-top: 0;
	}

	.matches-table {
		background: transparent;
		border-radius: 0;
		overflow-x: hidden;
		width: 100%;
	}

	.mobile-table .table {
		width: 100%;
		max-width: 100%;
		margin: 0;
		border-collapse: collapse; /* eliminar espacios entre celdas */
		table-layout: auto; /* Distribución automática basada en contenido */
	}

	.mobile-table .table th,
	.mobile-table .table td {
		padding: 0.3rem 0.5rem;
		font-size: 1rem; /* igual que jugadores */
		text-align: left; /* alinear a la izquierda */
		border: none !important;
	}
	
	/* Espaciado específico para columnas en móvil */
	.mobile-table th:first-child,
	.mobile-table td.mobile-time {
		padding-right: 1rem !important;
	}
	
	.mobile-table th:nth-child(2),
	.mobile-table td.mobile-players {
		padding-left: 0.5rem !important;
	}
	
	/* Ancho mínimo para la columna de resultado en móvil (media query) */
	.mobile-table th.result-header,
	.mobile-table td.mobile-result {
		min-width: 90px !important;
		width: auto !important;
		max-width: 120px !important;
	}
	
	/* Distribución de anchos de columnas en móvil */
	.mobile-table th:first-child,
	.mobile-table td.mobile-time {
		width: auto;
		min-width: 70px;
		max-width: 90px;
		padding-right: 1rem !important;
	}
	
	.mobile-table th:nth-child(2),
	.mobile-table td.mobile-players {
		width: auto;
		min-width: 0;
		padding-left: 0.5rem !important;
	}

	/* Forzar jugadores en columnas con VS entre líneas */
	.mobile-players-vs {
		display: flex;
		flex-direction: column;
		align-items: stretch; /* alinear contenido al ancho disponible */
	}
	.mobile-players-team {
		display: block;
		text-align: left; /* alinear a la izquierda */
		font-size: 1rem; /* fuente más grande para jugadores */
		line-height: 1.1;
		white-space: normal; /* permitir varias líneas */
	}
	
	/* Reducir separación entre jugadores del mismo equipo en dobles (móvil) */
	.mobile-players-team br {
		line-height: 0.3;
		margin: 0;
		padding: 0;
		display: block;
		content: "";
	}
	.mobile-players-vs-text {
		margin: 4px 0; /* un poco más de separación */
		font-weight: 600;
	}
	.mobile-players {
		white-space: normal;
	}
	/* Sin anchos fijos en móvil: las columnas se adaptan */
	
	.mobile-time,
	.mobile-result {
		font-size: 1rem; /* aumentar fuente en general */
		text-align: left; /* asegurar alineación izquierda en resultados */
	}
    
    .header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .header-title {
        flex-direction: column;
        text-align: center;
    }
    
    .header-logo {
        height: 60px;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .header-text {
        align-items: center;
    }
    
    .header-text .fesba {
        font-size: 2rem;
    }
    
    .header-text .scraper {
        font-size: 2rem;
    }
    
    .header .subtitle {
        font-size: 1rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .navbar.sticky-bottom .btn {
        min-width: 50px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar.sticky-bottom .btn span {
        display: none;
    }
    
    .navbar.sticky-bottom .nav-item {
        margin: 0 0.5rem;
    }
    
    .navbar.sticky-bottom .navbar-nav {
        flex-direction: row !important;
        width: 100%;
        justify-content: center;
    }
    
    /* Indicador visual para botones con filtro activo en móvil */
    .navbar.sticky-bottom .btn.filter-active {
        background-color: #FFD13D !important;
        color: #E5282F !important;
    }
    
    /* Tabla móvil más compacta */
    .mobile-table td {
        padding: 0.3rem 0.2rem;
        font-size: 0.8rem;
    }
    
    .mobile-table th {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
    }
    
    .mobile-players-vs {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }
    
    .mobile-players-vs-text {
        font-size: 0.65rem;
        margin: 0 0.2rem;
    }
    
    .mobile-result {
        font-size: 0.7rem;
    }
    
    .mobile-time {
        font-size: 0.65rem;
    }
    
    .expand-toggle {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 1rem;
        margin-right: 6px;
    }
    
    /* Mantener ancho mínimo para resultado incluso en pantallas muy pequeñas */
    .mobile-table th.result-header,
    .mobile-table td.mobile-result {
        min-width: 80px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .mobile-details td {
        padding: 0.2rem 0.3rem;
    }
    
    /* Modal más pequeño para móviles */
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
        height: calc(100vh - 0.5rem);
    }
    
    .modal-content {
        border-radius: 8px;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }
    
    .modal-header .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 0.75rem;
        flex: 1;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }
    
    .player-item {
        padding: 0.3rem;
        margin: 0.15rem 0;
        font-size: 0.85rem;
    }
    
    .selected-player-tag {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
        margin: 0.15rem;
    }
    
    #playersList {
        max-height: 200px;
    }
    
    /* Botones pequeños en header del modal */
    .modal-header .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
}

.badge-individual {
    background: #FFD13D;
    color: #E5282F;
    font-weight: 600;
}

.badge-doubles {
    background: #E5282F;
    color: white;
    font-weight: 600;
}

.json-container {
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
}

.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: #FFD13D;
    color: #E5282F;
}

.alert-danger {
    background: #E5282F;
    color: white;
}

/* Estilos para el modal de notificaciones */
.modal-header.success {
    background: #FFD13D;
    color: #E5282F;
}

.modal-header.danger {
    background: #E5282F;
    color: white;
}

.modal-header.warning {
    background: #FFD13D;
    color: #E5282F;
}

.modal-header.info {
    background: #E5282F;
    color: white;
}

.modal-header.primary {
    background: #E5282F;
    color: white;
}

.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    border-radius: 0 0 15px 15px;
}

.modal-footer .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
}

/* Modal más pequeño en móvil */
@media (max-width: 768px) {
    .modal-dialog.modal-sm {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    /* Override para que Login, Notificación y URL no ocupen toda la pantalla */
    #loginModal .modal-dialog,
    #notificationModal .modal-dialog,
    #urlModal .modal-dialog {
        max-width: 360px;
        width: 90%;
    }
    #loginModal .modal-content,
    #notificationModal .modal-content,
    #urlModal .modal-content {
        height: auto;
        max-height: 80vh;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .main-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

