/* Global Layout */

:root {
    --color-primary: #0a6ad1;
    --color-primary-dark: #0056b3;
    --color-primary-light: #0b51ad85;
    --color-accent: #ebb239;
    --color-danger: #e40707;
    --color-success: #28a745;
    --color-warning: #ffc107;
}

main {
    padding-bottom: 60px;   /* height of footer */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}



/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-primary-light);
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Flex settings for header sections */
.left-info,
.center-info,
.right-info {
    display: flex;
    align-items: center;
}

/* Center section expands and keeps the title centered */
.center-info {
    flex: 1;
    justify-content: center;
}

/* Right section aligns its items to the right with spacing */
.right-info {
    justify-content: flex-end;
    gap: 1rem;           /* space between greeting and logout */
    /* drop text-align to let flex do the work */
    text-align: initial;
}

/* Logo height */
.header-container .left-info img {
    height: 70px;
}

/* Title styling */
.header-container .center-info h1 {
    font-size: 30px;
    color: #007bff;
    margin: 0;
}

/* Greeting text */
.header-container .right-info p {
    margin: 0;
    font-size: 21px;
}


.project-selection #viewCalendarLink {
    margin-left: 2.5rem;
    background-color: var(--color-accent) !important;
    color: rgb(15, 15, 15) !important;
    padding: 10px 15px !important;
    border: 2px solid var(--color-danger) !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 20px !important;
}

.project-selection #viewCalendarLink:hover {
    background-color: var(--color-primary-dark) !important;
}

.project-selection #commitReportBtn {
    font-size: 40px;
    margin-left: 2.5rem;
}

#viewReportBtn {
    margin-left: 2.5rem;
    background-color: var(--color-accent) !important;
    color: rgb(15, 15, 15) !important;
    padding: 10px 15px !important;
    border: 2px solid var(--color-danger) !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 20px !important;
}
#viewReportBtn:hover {
    background-color: var(--color-primary-dark) !important;
}
#commitReportBtn.flash-highlight {
    animation: flash-box 1s infinite;
    border: 3px solid var(--color-warning);
}
@keyframes flash-box {
    0%,100% { box-shadow: 0 0 0 0 var(--color-warning); }
    50%     { box-shadow: 0 0 15px 5px var(--color-warning); }
}


/* -------------------------------------------------- */
/* Shared styling for project and date selectors       */
.project-selection {
    display: flex;
    font-size: 30px !important;
    justify-content: center !important;
    align-items: center;
    width: 85%;
    background-color: var(--color-primary-light) !important;
    padding: 10px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-selection label {
    font-size: 40px !important;
    font-weight: bold;
    color: #007bff !important;
    margin-right: 10px;
}

.project-selection select {
    width: 400px !important;
    font-size: 10px !important;
    zoom: 1.5;
    background-color: #eff5ef !important;
    padding: 8px;
    color: #333 !important;
    border: 2px solid #007bff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s ease-in-out;
}

.project-selection input[type="date"],
.project-selection input[type="text"] {
    width: 200px;
    font-size: 15px;
    zoom: 1.5;
    background-color: #eff5ef !important;
    padding: 6px;
    color: #333 !important;
    border: 2px solid #007bff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s ease-in-out;
}

.project-selection select:hover,
.project-selection input[type="date"]:hover {
    background-color: #eba8b3;
    border-color: #f1081c;
}

.project-selection select:focus,
.project-selection input[type="date"]:focus {
    outline: none;
    background-color: #f04360;
    border-color: #181716;
}

@media only screen and (max-width: 600px) {
    .project-selection {
        justify-content: center !important;
        align-items: center;
        margin-top: 10px;
        width: 100%;
        margin-bottom: 10px;
        background-color: #aa4a12 !important;
    }

    .project-selection label {
        font-size: 25px !important;
        color: #fff !important;
    }

    .project-selection select {
        width: 150px !important;
        font-size: 25px !important;
        background-color: #e98e06 !important;
        padding: 10px;
        border: 2px solid #aa4a12;
    }

    .project-selection select:hover {
        background-color: #ffc107;
        border-color: #ff9800;
    }

    .project-selection select:focus {
        outline: none;
        background-color: #ffd54f;
        border-color: #ff9800;
    }
}

/* Logout Button */
#logoutButton {
    background-color: var(--color-accent) !important;
    color: rgb(15, 15, 15) !important;
    padding: 10px 15px !important;
    border: 2px solid var(--color-danger) !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 20px !important;
}

#logoutButton:hover {
    background-color: var(--color-primary-dark) !important;
}

/* Required field indicator */
.required {
    color: #c00;       
    margin-left: 0.25rem;
    font-weight: bold;
}

/*
 * Legacy styles for the project catalog "Add Project" button.
 * The button now inherits `.btn-main` rules from the admin React app,
 * so these overrides are commented out for clarity.
 */
/* #addProjectBtn {
    background-color: var(--color-accent) !important;
    color: rgb(15, 15, 15) !important;
    padding: 10px 15px !important;
    border: 2px solid var(--color-danger) !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 20px !important;
}

#addProjectBtn:hover {
    background-color: var(--color-primary-dark) !important;
}*/

/* Footer */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

/* General Utilities */
.hidden {
    display: none !important;
}

/* Option state colors for report date selector */
.completed-day {
    background-color: #28a745 !important; /* green */
    color: #fff !important;
}

.incomplete-day {
    background-color: #ff9800 !important; /* orange */
    color: #000 !important;
}

/* Utility spacing classes */
.spaced-label {
    margin-left: 20px;
}

.ml-80 {
    margin-left: 80px;
}

.mt-20 {
    margin-top: 20px;
}

.full-width {
    width: 100%;
}


.center {
    text-align: center;
}

/* Weather Widget */
.weather-widget {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    font-size: 1.25rem;   /* 25% larger text */
}

.weather-widget img {
    width: 1.5em;          /* scale icon up */
    height: auto;
    margin-right: 0.5em;   /* gap between icon and temp */
}

/* Standalone weather icon styling */
.weather-icon {
    vertical-align: middle;
    width: 50px;
    height: 50px;
    margin-right: 5px;
}


/* Header navigation menu */
.menu {
    display: flex;
    align-items: center;
}

.menu a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.menu a:hover {
    background-color: var(--color-primary-dark);
}

.btn-main {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-main:hover {
    background-color: var(--color-primary-dark);
}

/* Circular back arrow button for report view */
#backToEntryBtn.back-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    border-radius: 50%;
    border: 4px solid var(--color-success);
    color: var(--color-success);
    text-decoration: none;
    transition: background-color 0.2s;
}
#backToEntryBtn.back-arrow:hover {
    background-color: var(--color-success);
    color: #fff;
}
