@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    background-color: #f4f6f9;
    font-family: 'Poppins', sans-serif;
    color: #2b2d42;
}

.login-bg {
    background-color: #edf2f4;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding-top: env(safe-area-inset-top, 40px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

#bouncyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.login-container {
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin: auto; /* Centra verticalmente solo si cabe */
}

.login-card {
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(217, 4, 41, 0.15);
}

.login-card h2 {
    font-weight: 700;
    color: #d90429;
}

.login-card .form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    background: rgba(255,255,255,0.9);
}

.login-card .btn-primary {
    background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
    transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.4);
    background: linear-gradient(135deg, #d90429 0%, #ba0323 100%);
}

.navbar {
    background: #111 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff !important;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.7) !important;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #ef233c !important;
}

.planner-container {
    z-index: 2; 
    position: relative; 
    background: rgba(255,255,255,0.98); 
    padding: 30px; 
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-top: 20px;
    margin-bottom: 40px;
}

.header-info {
    background-color: #fff;
    border: none;
    border-top: 4px solid #ef233c;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.planner-table {
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.planner-table th { 
    background-color: #2b2d42; 
    color: white; 
    text-align: center; 
    font-size: 0.85rem; 
    font-weight: 600;
    padding: 12px;
    border: none;
    white-space: nowrap;
}

.planner-table td { 
    font-size: 0.85rem; 
    padding: 0; 
    vertical-align: middle; 
    border-color: #edf2f4;
}

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

.planner-table .table-warning {
    background-color: rgba(239, 35, 60, 0.05) !important;
}

input.cell-input, select.cell-input { 
    width: 100%; 
    height: 100%;
    padding: 10px 8px;
    border: 1px solid transparent; 
    background: transparent; 
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.85rem;
}

input.cell-input:focus, select.cell-input:focus { 
    border: 1px solid #ef233c; 
    background: #fff; 
    outline: none; 
    box-shadow: inset 0 0 0 1px #ef233c;
}

.badge.bg-danger {
    background-color: #d90429 !important;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card-header {
    font-weight: 600;
    border-bottom: none;
    border-radius: 15px 15px 0 0 !important;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    .planner-container {
        padding: 15px;
        margin-top: 10px;
    }
    
    .header-info {
        padding: 15px;
    }

    input.cell-input, select.cell-input {
        min-width: 110px; /* Previene que las columnas se aplasten demasiado en el scroll horizontal */
    }
    
    .planner-table th, .planner-table td {
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
}
