/* Original styles from base.html */
.navbar-brand {
    display: block;
    text-align: center;
    color: #000;
}
.navbar-brand img {
    height: 40px; /* Fixed logo size */
    display: block;
    margin: 0 auto;
}
.navbar-brand span {
    font-size: 2.25rem; /* Fixed text size */
    font-family: 'Montserrat', sans-serif;
    color: #2E8B9A;
    display: block;
    margin-top: 10px;
}
.branding-section {
    background-color: #fff;
    padding: 1rem 0;
    margin-bottom: 2rem;
}
input[type="date"] {
    width: 140px;
}
.welcome-message {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2E8B9A;
    text-align: center;
}
.project-name {
    font-weight: bold;
}
#logoutWarningModal .modal-content {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}
#logoutWarningModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
    background: none;
}
#logoutWarningModal .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2E8B9A;
    font-size: 1.5rem;
}
#logoutWarningModal .btn-close {
    filter: grayscale(1);
    opacity: 0.6;
    transition: opacity 0.2s;
}
#logoutWarningModal .btn-close:hover {
    opacity: 1;
}
#logoutWarningModal .modal-body {
    padding: 0 1.5rem 1.5rem;
    color: #333;
    font-size: 1.1rem;
    text-align: center;
}
#logoutWarningModal .modal-body span#countdown {
    color: #e63946;
    font-weight: bold;
    font-size: 1.3rem;
}
#logoutWarningModal .modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
    justify-content: center;
}
#logoutWarningModal .btn-primary {
    background: linear-gradient(90deg, #2E8B9A 0%, #47A8B5 100%);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}
#logoutWarningModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 154, 0.3);
    background: linear-gradient(90deg, #47A8B5 0%, #2E8B9A 100%);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 576px) {
    .navbar-brand span { font-size: 1.5rem; margin-top: 5px; } /* Mobile-adjusted branding */
    .navbar-nav { flex-direction: column; align-items: center; }
    .nav-link { padding: 0.5rem; font-size: 0.9rem; }
    .welcome-message { font-size: 1rem; }
    .display-6 { font-size: 1.5rem; }
    .btn { min-width: 60px; padding: 0.25rem 0.5rem; font-size: 0.9rem; }
    .form-control, .form-select { font-size: 0.9rem; }
    .container { padding-left: 10px; padding-right: 10px; }
    .table th, .table td { padding: 0.5rem; }
}

/* Modal tweaks only if needed */
.modal {
    display: none; /* Bootstrap default */
}

.modal.show {
    display: block !important; /* Ensure visibility */
}

.modal-dialog {
    width: 80%;
    max-width: 800px;
    min-width: 300px;
    margin: 1.75rem auto; /* Bootstrap default centering */
}

.modal-content {
    background-color: #ffffff; /* Bright white */
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 1rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        width: 95%;
        max-width: none;
        min-width: 280px;
        margin: 0.5rem auto; /* Adjusted for mobile */
    }
    .modal-content {
        max-height: 95vh;
    }
}
