/* Estilos personalizados para CodiTvs */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Reducir espacio entre navbar y contenido principal */
main.container {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Ajustar navbar para que esté más pegado al contenido */
.navbar {
    margin-bottom: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Hacer que el contenido ocupe el 100% del ancho */
.container, .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Reducir márgenes en todas las secciones */
.jumbotron, .card, .row {
    margin-bottom: 1rem !important;
}

/* Ajustar el footer para que esté más pegado */
footer {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.jumbotron {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 10px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.footer {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.alert {
    border-radius: 5px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dropdown-menu {
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para el dashboard premium */
.bg-primary {
    background-color: #007bff !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Tarjetas de Estadísticas Responsive */
.stat-card {
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.stat-card i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    opacity: 0.3;
}

/* Ajustes para que las cards sean más cuadradas en móvil */
@media (max-width: 768px) {
    .stat-card {
        aspect-ratio: auto;
    }
}

@media (max-width: 576px) {
    .stat-card {
        aspect-ratio: auto;
    }
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .stat-card {
        min-height: 130px;
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card i {
        font-size: 40px;
        right: 15px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .stat-card {
        min-height: 140px;
        max-height: 140px;
        padding: 15px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .stat-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .stat-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .stat-card i {
        font-size: 30px;
        right: 12px;
        top: 12px;
        transform: none;
    }
    
    /* Grid de 2 columnas en tablets */
    .row > [class*='col-md'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 576px) {
    .stat-card {
        min-height: 130px;
        max-height: 130px;
        padding: 12px;
        margin-bottom: 12px;
        width: 100%;
        border-radius: 12px;
    }
    
    .stat-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .stat-card i {
        font-size: 26px;
        right: 10px;
        top: 10px;
        transform: none;
    }
    
    .row > [class*='col-'] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Grid de 2 columnas compactas en móvil */
    .row > [class*='col-md'],
    .row > [class*='col-lg'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Ajustes para grid de cards */
@media (max-width: 992px) {
    .col-md-4:not(:last-child) .stat-card,
    .col-lg-4:not(:last-child) .stat-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .col-sm-6 .stat-card {
        margin-bottom: 10px;
    }
}

/* Ajustes adicionales para pantalla completa al 100% */
html {
    overflow-x: hidden;
    width: 100%;
}

/* Reducir aún más el espacio en dispositivos móviles */
@media (max-width: 768px) {
    main.container {
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }
    
    .navbar {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    .jumbotron {
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card {
        margin-bottom: 0.5rem !important;
    }
}

/* Ajustes para que el contenido se vea más compacto */
.card-body {
    padding: 1rem !important;
}

.jumbotron {
    padding: 2rem !important;
    margin-bottom: 1rem !important;
}