body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa; 
    color: #495057;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.login-active {
    overflow-y: hidden; /* Prevent scrolling on login page */
}

:root {
    --gld-blue: #002d5b;
    --gld-orange: #f26522;
    --gld-gray: #808285;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;

    --fc-border-color: var(--border-color);
    --fc-daygrid-event-dot-width: 8px;
    --fc-list-event-dot-width: 10px;
    --fc-event-bg-color: var(--gld-blue);
    --fc-event-border-color: var(--gld-blue);
    --fc-button-bg-color: var(--gld-orange);
    --fc-button-border-color: var(--gld-orange);
    --fc-button-hover-bg-color: #d95a1e;
    --fc-button-hover-border-color: #d95a1e;
    --fc-button-active-bg-color: #d95a1e;
    --fc-button-active-border-color: #d95a1e;
    --fc-today-bg-color: rgba(242, 101, 34, 0.1);
}

.fc-event-user {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.8;
    margin-top: 2px;
}

.navbar.bg-dark {
    background-color: var(--gld-blue) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Primary buttons use the orange from the logo */
.btn {
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem;
}
.btn-primary {
    background-color: var(--gld-orange);
    border-color: var(--gld-orange);
}
.btn-primary:hover {
    background-color: #d95a1e;
    border-color: #d95a1e;
}

#intranet-container {
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for the footer */
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--light-gray);
}

.card {
    max-width: 100%;
    width: 100%;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Softer, more modern shadow */
    border: none;
}

#login-container .card {
     max-width: 450px;
     padding: 1rem;
}

.form-control {
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(242, 101, 34, 0.25);
    border-color: var(--gld-orange);
}

.logo {
    max-width: 120px; /* Slightly smaller logo for login */
    margin: 0 auto 20px auto;
}

/* Ensure list links are not the default blue */
.list-group-item a {
    text-decoration: none;
    color: inherit;
}
.list-group-item a:hover {
    text-decoration: underline;
}

.app-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.app-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.app-card-link:hover .app-card {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 45, 91, 0.1);
    border-color: var(--gld-blue);
}

.app-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

#adminPanelModal .modal-xl {
    --bs-modal-width: 900px;
}

#adminPanelModal .form-label {
    text-align: left;
    display: block;
    margin-bottom: .25rem;
    font-size: 0.9rem;
    color: #555;
}

.birthday-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease-in-out;
}

.birthday-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.birthday-card .card-body {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
}

.birthday-card .date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 45, 91, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    margin-right: 1rem;
    min-width: 55px;
}

.birthday-card .date-display .day {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gld-blue);
    line-height: 1.1;
}
.birthday-card .date-display .month {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gld-gray);
}

.birthday-card .info .name {
    font-weight: 500;
    color: #343a40;
}
.birthday-card .info .days-left {
    font-size: 0.85rem;
    color: var(--gld-orange);
}

.birthday-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #002d5b; /* Dark Blue from logo */
}
.birthday-month {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #6c757d;
}
.birthday-name {
    margin-top: 0.5rem;
    font-weight: 500;
}
.birthday-daysleft {
    font-size: 0.8rem;
    color: #f26522; /* Orange from logo */
    font-style: italic;
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--gld-blue);
}

#task-calendar-wrapper {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h2, .h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gld-blue);
    margin: 0 0 10px 0;
}

h3, .h3 {
    font-weight: 600;
    color: var(--gld-blue);
}

.section-title {
    padding-left: 10px;
    border-left: 4px solid var(--gld-orange);
    line-height: 1.2;
}

p {
    font-size: 1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.progress-indicator {
    display: none; /* No longer needed for this design */
}

.dot {
    display: none; /* No longer needed for this design */
}

#page-footer {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/pies de pagina2.jpg');
    background-size: cover;
    background-position: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1020; /* Below navbar but above most content */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100vw;
}

.login-banner {
    background-image: url('/Mesa de trabajo 2.jpg');
    background-size: cover;
    background-position: left;
  background-position: 20% 70%;
}

.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--light-gray);
}

.login-form-area .card {
    max-width: 450px;
    width: 100%;
    border: none;
    border-radius: 12px;
}

@media (max-width: 768px) {
    #login-container {
        grid-template-columns: 1fr;
    }
    .login-banner {
        display: none; /* Hide banner on small screens to save space and focus on form */
    }

    h2, .h2 {
        font-size: 1.5rem;
    }
    .navbar-text {
        display: none; /* Hide welcome text on small screens to save space */
    }
    p {
        font-size: 1rem;
    }
    .logo {
        max-width: 120px;
    }
}