/* homePage/homePage.css */

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px; /* Adjust to actual navbar height */
    background-color: #f8f9fa; /* Fallback for body */
    background-image: url('images/backgroundImage.png')!important;
}

.main-content {
    flex-grow: 1;
}

/* --- Navbar --- */
.site-navbar {
    background-color: #e0f7fa !important;
    border-bottom: 1px solid #b2ebf2;
}
.project-title{
    font-weight: 700;
    color: #00796b;
    margin-left: 5px;
}
.site-navbar .navbar-brand .project-title {
    font-weight: 700;
    color: #00796b;
    margin-left: 5px;
}
.site-navbar .navbar-nav .nav-link {
    color: #00796b;
    margin: 0 10px;
    font-weight: 400;
}
.site-navbar .navbar-nav .nav-link.active,
.site-navbar .navbar-nav .nav-link:hover {
    color: #004d40;
    font-weight: 700;
}
.site-navbar .login-btn {
    border-color: #00796b;
    color: #00796b;
    border-radius: 20px;
    border-width: 1px;
    font-weight: 700;
}
.site-navbar .login-btn:hover {
    background-color: #00796b;
    color: white;
}
.site-navbar .btn-outline-danger { /* Logout button */
    border-radius: 10px; /* Was 20px in an earlier version, choose one */
    padding-top: 8px; /* Custom padding - ensure it aligns with other btn-sm */
    font-weight: 700;
}
.site-navbar .btn-outline-danger:hover{
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out; /* Added property for transition */
}

/* --- Hero Section (Public/Logged-Out View) --- */
.hero-section {
    padding: 60px 0;
    background-position: top left;
    background-repeat: repeat; /* Or 'no-repeat' with 'background-size: cover;' */
    position: relative;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    color: #343a40;
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
}
.hero-content .lead {
    color: #495057;
    font-size: 1.25rem;
}
.hero-graphic img {
    max-width: 100%;
    height: auto;
}

#featureLoginAlert {
    display: none; /* Keep it hidden initially */
    position: fixed; top: 70px; left: 50%;
    transform: translateX(-50%); z-index: 1055; width: auto; min-width: 300px;
}
/* Add styles for dashboard if needed */
.dashboard-welcome { margin-bottom: 2rem; }
.dashboard-links .list-group-item { font-size: 1.1rem; padding: 1rem; }

/* --- Custom Start Button (Public Hero Section) --- */


.btn-start {
    display: inline-block;
    background-color: #096cb7;
    border-radius: 40px;
    border: none;
    padding: 14px 35px;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
    line-height: 1.3;
}
.btn-start:hover {
    background-color: #f9c825;
    color: #333;
    transform: scale(1.05);
}
.btn-start:active {
    transform: scale(1.00);
    background-color: #e0b01e;
    color: #333;
    /* transition: 0.3s; */ /* Transition should be on the base state, not just active */
}
.btn-start i {
    font-size: 1.1em;
    vertical-align: middle;
}
.initiative-text {
    font-size: 0.85rem;
    color: #6c757d;
}

/* --- Dashboard Content (Logged-In View) --- */
.dashboard-content {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.dashboard-welcome {
    margin-bottom: 1rem;
    font-weight: 700;
    color: #343a40;
}
.dashboard-prompt {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    color: #6c757d;
}
.dashboard-links .list-group {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.dashboard-links .list-group-item {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.dashboard-links .list-group-item i {
    color: #0d6efd;
    transition: transform 0.2s ease-in-out;
}
.dashboard-links .list-group-item:hover i {
    transform: scale(1.1);
}

/* --- Login Modal --- */
#loginModal .modal-content {
    border-radius: 30px;
    background-image: url('images/backgroundImage.png'); /* Path relative to this CSS file */
    background-size: cover;
    background-color: #ffffff; /* Fallback if image fails or for browsers that don't load it fast */
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 20px;
}
#loginModal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}
#loginModal .modal-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: #333;
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}
#loginModal .login-input {
    background-color: #bde0fb;
    border: none;
    border-radius: 50px;
    height: 50px;
    padding: 10px 25px;
    color: #004a8b;
    text-align: center;
    box-shadow: none;
    margin-bottom: 8px;
    width: 100%;
}
#loginModal .login-input::placeholder {
    color: #004a8b;
    opacity: 0.7;
}
#loginModal .login-input:focus {
    background-color: #a3d2f7;
    color: #003b70;
}
#loginModal .login-label {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.1rem;
    margin-bottom: 1rem;
}
#loginModal .modal-footer {
    border-top: none;
    padding-top: 0.5rem;
    justify-content: center;
}
#loginModal .btn-start { /* For buttons inside modal */
    padding: 10px 30px;
    font-size: 1.1rem;
    min-width: 180px;
    margin-bottom: 0.75rem;
}
#loginModal .btn-start:last-child {
    margin-bottom: 0;
}
#loginModal .btn-create-account {
    background-color: #004a8b;
}
#loginModal .btn-create-account:hover {
    background-color: #f9c825;
    color: #333;
}
.sei-graphic { /* Images inside modal */
    padding: 1rem;
}
.sei-graphic img {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
}
.sei-graphic img:last-child {
    margin-bottom: 0;
}

/* --- Feature Login Alert (Yellow Banner) --- */
#featureLoginAlert {
    border-radius: 0.375rem;
}
#featureLoginAlert .alert-link {
    font-weight: bold;
}

/* --- Footer --- */
.site-footer {
    background: #e9ecef;
    color: #6c757d;
    padding: 20px 0;
    border-top: 1px solid #dee2e6;
    font-size: 0.9em;
    text-align: center;
}
.site-footer p {
    margin-bottom: 0;
}
.site-footer a {
    color: #007bff;
    text-decoration: none;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991.98px) { /* Tablets and down */
    .hero-section { padding: 40px 0; }
    .hero-section::before { display: none; } /* Hide decorative pseudo-element */
    .hero-content { text-align: center !important; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .lead { font-size: 1.1rem; }
    .btn-start { font-size: 1.1rem; padding: 12px 25px; }
    #loginModal .modal-title { font-size: 1.5rem; }
    #loginModal .login-input { width: 90%; }
    .dashboard-links .list-group { max-width: 100%; }
}

@media (max-width: 767.98px) { /* Mobile phones */
    body { padding-top: 58px; /* Adjust if navbar height changes for mobile */ }
    .site-navbar .navbar-brand .project-title { font-size: 0.9rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content .lead { font-size: 1rem; }
    .btn-start { font-size: 1rem; padding: 10px 20px; }
    #loginModal .btn-start { font-size: 1rem; min-width: 160px; }
    .dashboard-welcome { font-size: 1.8rem; }
    .dashboard-prompt { font-size: 1rem; }
    .dashboard-links .list-group-item { font-size: 1rem; padding: 0.8rem 1rem; }
    #featureLoginAlert { top: 60px; width: 90%; min-width: unset; }
}