@font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: bold; /* Bold */
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* background-color: aqua; */
    font-family: 'Poppins', sans-serif;
}


.navbar {
    background-color: #194aa6;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    /* border-radius: 0 0 10000px 0;
    font-size: x-large; */
    /* position: fixed; */
    justify-content: space-between;
    /* width: 100%;
    top: 0; */
    /* z-index: 1000;
    transition: all 0.3s ease; */
}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* color: white; */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    padding-right: 10px;
}

.logo-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    color: white;
    text-decoration: none;
}

.p1 {
    font-size: 2rem;
}

.p2 {
    font-size: 1.1rem;
}



.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-left: 10%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.7rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.main-content {
    padding: 120px 2% 0.45rem;
    background-image: url('photo/WorldMapPattern.png');
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* z-index: -5;*/
    display: flex;
    align-items: center;
    min-height: calc(100vh - 65px);
    background-color:  #e6f3f9;;
}

.travel-image {
    position: relative;
    width: 90%;
    max-width: 500px;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s ease forwards;
}

.content-text {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

h1 {
    color: #000000;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    margin-left: 7rem;
}

.feature {
    margin: 1rem 0;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.reg-parent {
    display: flex;
    justify-content: right;

}

.register-btn {
    /* display: inline-block; */
    background: #1B429C;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.7rem;
    /* float: right; */
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(27, 66, 156, 0.3);
}

footer {
    background: #1e3a8a;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.footer-links {
    display: flex;
    gap: 5rem;
    justify-content: left;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.7rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    transform: translateY(-3px);
}

.footer-image {
    width: 100px;
    transition: transform 0.3s ease;
}

.footer-image:hover {
    transform: rotate(10deg);
}



.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.4s;
}



@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .footer-links {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .p1 {
        font-size: 2rem;
    }

    .p2 {
        font-size: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .main-content {
        flex-direction: column;
        padding-top: 150px;
    }

    .travel-image {
        width: 100%;
        order: -1;
        margin-bottom: 2rem;
    }

    .content-text {
        text-align: center;
    }

    h1 {
        margin-left: 0;
    }






    footer {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }
    .footer-image{
        width: 15%;
    }

    .footer-links {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    .footer-links a{
        font-size: 15px;
    }

}


/******************************* register *******************************/
.register-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-image: url('/images/map-bg.png'); /* if needed */
    background-repeat: no-repeat;
    background-size: cover;
}

.register-card {
    background-color: #fff;
    padding: 30px;
    /* border: 2px dashed #aad5f2; */
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.register-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.register-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.register-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.register-submit {
    background-color: #1B429C;
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.register-submit:hover {
    background-color: #184ac7;
}

.google-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: background 0.3s;
}

.google-button:hover {
    background-color: #f2f2f2;
}

.form-group {
    margin-bottom: 0.5rem;
}

.password-field {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.checkbox-wrapper {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.simple-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-checkbox input[type="checkbox"] {
    accent-color: #1B429C;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.simple-checkbox a {
    color: #1B429C;
    text-decoration: none;
}

.simple-checkbox a:hover {
    text-decoration: underline;
}



/* .google-icon {
    height: 30px;
    margin-right: 10px;
} */


/******************************* login *******************************/

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    background-image: url('/images/map-bg.png'); /* optional */
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
}

.login-card {
    background-color: #fff;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.login-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.login-label {
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: none;
    border-radius: 25px;
    background: #f0f0f0;
    font-size: 14px;
    outline: none;
}

.login-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.google-login {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    flex-grow: 1;
    justify-content: center;
}

.google-login:hover {
    background-color: #f9f9f9;
}

.google-icon {
    width: 30px;
    margin-right: 8px;
}

.login-submit {
    background-color: #0d2dcf;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-submit:hover {
    background-color: #0920a3;
}


/************************************* create req *****************************/



    /* Theme Variables */
    :root {
        --primary-color: #1B429C;
        --primary-hover: #152b63;
        --background-color: white;
        --border-color: #ddd;
        --error-color: #dc3545;
        --text-gray: #6c757d;
        --shadow-color: #aaaaaa;
    }

    /* Calendar Component Styles */
    .calendar-container {
        background-color: var(--background-color);
        border-radius: 20px 20px 0 0;
        height: 400px;
        width: 400px;
    }

    #calendar {
        height: 100%;
    }

    .fc-toolbar {
        background-color: var(--primary-color);
        padding: 8px;
        border-radius: 20px 20px 0 0;
    }

    .fc-toolbar-title {
        color: var(--background-color);
        font-size: 1.2em !important;
    }

    .fc-button {
        background-color: transparent !important;
        border: 1px solid var(--background-color) !important;
        color: var(--background-color) !important;
    }

    .fc-button:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }

    .fc-day-past {
        background-color: #f5f5f5;
        cursor: not-allowed !important;
    }

    /* Modal Styles */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .modal-content {
        background-color: var(--background-color);
        margin: 15% auto;
        padding: 20px;
        width: 300px;
        border-radius: 8px;
        text-align: center;
    }

    .modal-buttons {
        margin-top: 20px;
    }

    .modal-button {
        padding: 8px 16px;
        margin: 0 5px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .confirm-button {
        background-color: var(--primary-color);
        color: var(--background-color);
    }

    .cancel-button {
        background-color: #e0e0e0;
    }

    /* Request Form Layout */
    .request {
        background-color: var(--background-color);
        margin: auto;
        border-radius: 20px;
        padding: 27px;
        margin-top: 150px;
        display: flex;
        flex-direction: row;
        gap: 27px;
    }

    .location-container {
        display: flex;
        flex-direction: column;
    }

    .request-right,
    .request-left {
        display: flex;
        flex-direction: column;
    }

    /* Date Selection Styles */
    .selected-date-section {
        margin: 10px 0;
        border-radius: 10px;
    }

    .selected-date-section h3 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    /* .date-display {
        font-size: 16px;
        background-color: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: 5px;
        text-align: center;
    } */

    .no-date-selected {
        color: #666;
        font-size: 0.9rem;
        /* color: var(--text-gray);
        font-style: italic; */
    }


    /* Location Selection Styles */
    .location-section {
        padding: 10px;
        border-radius: 10px;
        display: flex;
        flex-direction: row;
    }

    .location-inputs {
        display: flex;
        justify-content: center;
        flex-direction: row;
        gap: 75px;
    }

    .src-txt,
    .dest-txt {
        color: var(--primary-color);
    }

    .location-inputs select {
        flex: 1;
        padding: 6px;
        border: 1px solid var(--shadow-color);
        border-radius: 50px;
        font-size: 14px;
        max-width: 135px;
        box-shadow: 0px -2px 11px var(--shadow-color);
        text-align: center;
    }

    .location-inputs select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(27, 66, 156, 0.2);
    }

    .location-icon {
        background-image: url('locationicon.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 64px;
        height: 64px;
    }

    /* User Type Section Styles */
    .user-type-section {
        margin: 5px 0;
        padding: 5px;
        border-radius: 10px;
    }

    .user-type-section select {
        flex: 1;
        padding: 6px;
        border: 1px solid var(--shadow-color);
        /* border: 2px solid var(--primary-color); */
        border-radius: 50px;
        font-size: 14px;
        box-shadow: 0px -2px 11px var(--shadow-color);
        text-align: left;
        width: 100%;
        padding: 10px;
        font-size: 18px;
        background-color: var(--background-color);
        cursor: pointer;
        outline: none;
        transition: all 0.3s ease;
    }

    .user-type-section select:hover {
        border-color: var(--primary-hover);
    }

    .user-type-section select:focus {
        box-shadow: 0 0 0 2px rgba(27, 66, 156, 0.2);
    }

    .user-type-section h3 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

    /* Items Section */
    .items-section {
        margin: 20px 0;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        max-height: 120px;
        /* Keeps height consistent */
        overflow-y: auto;
        /* Enables scrolling */
    }

    /* Items Container */
    .items-list {
        list-style: none;
        padding: 0;
        margin: 10px 0;
    }

    /* Individual Item Entry */
    .item-entry {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .item-entry input {
        flex: 1;
        padding: 8px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        min-width: 100px;
    }

    /* Remove Button */
    .item-entry button {
        background-color: var(--error-color);
        color: var(--background-color);
        border: none;
        border-radius: 5px;
        padding: 5px 10px;
        cursor: pointer;
    }

    /* Sidebar for Extra Items */
    .items-sidebar {
        width: 200px;
        max-height: 300px;
        overflow-y: auto;
        border-left: 2px solid var(--border-color);
        padding-left: 10px;
    }

    /* Error Message */
    .error-message {
        color: red;
        font-size: 14px;
        margin-top: 5px;
        display: none;
        /* Hidden by default */
    }

    /* Form Elements Styles */
    .form-group {
        margin-bottom: 10px;
        padding: 5px;
        border-radius: 10px;
    }

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: var(--primary-color);
        font-weight: bold;
    }

    .form-group input {
        flex: 1;
        border: 1px solid var(--shadow-color);
        border-radius: 50px;
        font-size: 14px;
        box-shadow: 0px -2px 11px var(--shadow-color);
        text-align: left;
        width: 100%;
        padding: 10px;
        font-size: 18px;
    }

    .form-group select {
        width: 100%;
        padding: 8px;
        border: 1px solid var(--error-color);
        border-radius: 5px;
        font-size: 14px;
    }

    /* Error Messages */
    .error-message {
        color: var(--error-color);
        font-size: 14px;
        margin-top: 5px;
        display: none;
    }

    /* Date Range Styles */
    .date-range {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    /* Button Styles */
    .add-item-btn {
        background-color: var(--primary-color);
        color: var(--background-color);
        border: none;
        border-radius: 5px;
        padding: 8px 15px;
        cursor: pointer;
        margin-top: 10px;
    }

    .createRequest-parent {
        display: flex;
        justify-content: center;
        align-items: center;

    }

    .createRequest {
        background-color: var(--primary-color);
        color: var(--background-color);
        border: none;
        max-width: 420px;
        border-radius: 40px;
        padding: 12px 25px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 20px;
        width: 100%;
        transition: background-color 0.3s;
    }


    .createRequest:hover {
        background-color: var(--primary-hover);
    }

    /* Loading States */
    .select-loading {
        position: relative;
        pointer-events: none;
        opacity: 0.7;
    }

    .select-loading::after {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        border-top-color: transparent;
        animation: rotate 1s linear infinite;
    }

    @keyframes rotate {
        to {
            transform: translateY(-50%) rotate(360deg);
        }
    }

    /* Item Selection Styles */
    .item-select {
        width: 140px;
        padding: 8px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 14px;
    }

    .item-select optgroup {
        font-weight: bold;
        color: var(--primary-color);
    }

    .item-select option {
        padding: 8px;
        color: #333;
    }

    .item-select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 2px rgba(27, 66, 156, 0.2);
    }

    .quantity {
        width: 95px;
        padding: 8px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 14px;
    }

    .unit {
        width: 90px;
        padding: 8px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 14px;
    }

    /* Large screens (desktop) */
    @media (max-width: 1200px) {
        .request {
            width: 90%;
            padding: 20px;
            gap: 15px;
        }

        .location-inputs {
            gap: 40px;
        }

        .calendar-container {
            height: 400px;
            width: 100%;
        }
    }

    /* Medium screens (tablets) */
    @media (max-width: 992px) {
        .request {
            width: 95%;
            padding: 15px;
            gap: 20px;
        }

        .location-inputs {
            gap: 30px;
        }

        .request-right,
        .request-left {
            width: 100%;
        }
    }

    /* Small tablets and large mobile */
    @media (max-width: 768px) {
        .request {
            width: 95%;
            padding: 15px;
            margin-top: 0;
            /* Reduce this margin since we added space to main-content */
            margin-bottom: 20px;
            flex-direction: column-reverse;
            gap: 30px;
        }

        main {
            padding-top: 80px;
            /* Increased padding to account for mobile navbar */
            padding-bottom: 20px;
            /* Add some bottom padding for scrolling */
            min-height: 100vh;
            align-items: flex-start;
            /* Align content to top after padding */
        }

        .request-right,
        .request-left {
            width: 100%;

        }

        .location-section {
            flex-direction: row;
        }

        .location-inputs {
            justify-content: space-between;
            gap: 20px;
        }

        .location-inputs select {
            width: 45%;
            max-width: none;
        }

        .location-icon {
            width: 32px;
            height: 32px;
        }

        .calendar-container {
            height: auto;
            margin-bottom: 80px;
            order: -1;
        }

        /* Adjust the calendar days size on mobile */
        .fc-daygrid-day {
            min-height: 45px !important;
            /* Ensure days are not too small */
        }

        /* Make the text in calendar more readable on mobile */
        .fc-daygrid-day-number {
            font-size: 14px;
            padding: 4px !important;
        }

        /* Adjust header sizes */
        .fc-toolbar-title {
            font-size: 1.1em !important;
        }

        .items-section {
            margin-top: 20px;
        }

        .item-entry {
            flex-wrap: wrap;
            gap: 8px;
        }

        .item-select,
        .quantity,
        .unit {
            /*width: 100%;*/
            margin-bottom: 8px;
        }

        .createRequest {
            margin-top: 30px;
        }
    }

    /* Mobile devices */
    @media (max-width: 576px) {
        .request {
            width: 100%;
            margin-top: 80px;
            padding: 12px;
        }

        .location-inputs {
            flex-direction: column;
            gap: 15px;
        }

        .location-inputs select {
            width: 100%;
            font-size: 14px;
        }

        .location-icon {
            width: 24px;
            height: 24px;
            margin: 5px auto;
        }

        .calendar-container {
           height: auto;
        }

        /* .selected-date-section .date-range {
            flex-direction: column;
            gap: 10px;
        } */

        /* .date-display {
            padding: 8px;
        } */

        .form-group input,
        .user-type-section select {
            padding: 10px;
            font-size: 14px;
        }

        .items-section h3 {
            font-size: 16px;
        }

        .add-item-btn {
            width: 100%;
            padding: 10px;
        }

        .createRequest {
            padding: 12px;
            font-size: 16px;
        }
    }

    /* Extra small devices */
    @media (max-width: 400px) {
        .request {
            margin-top: 60px;
            padding: 10px;
        }

        .calendar-container {
            height: auto;
        }

        .location-inputs select,
        .form-group input,
        .user-type-section select,
        .item-select,
        .quantity,
        .unit {
            font-size: 13px;
            padding: 8px;
        }

        .createRequest {
            font-size: 14px;
            padding: 10px;
        }

        .items-section h3 {
            font-size: 15px;
        }
    }
    .text-danger{
        color: red;
    }

    
    .checkbox-wrapper {
        margin-top: 20px;
        display: flex;
        justify-content: flex-start;
    }
    
    .checkbox-wrapper .btn {
        background-color: transparent;
        border: 1px solid var(--border-color);
        color: var(--primary-color);
        padding: 8px 16px;
        border-radius: 6px;
        transition: background-color 0.3s, color 0.3s;
        box-shadow: 0 2px 4px var(--shadow-color);
        font-weight: 500;
        text-decoration: none;
    }
    
    .checkbox-wrapper .btn:hover {
        background-color: var(--primary-hover);
        color: white;
    }
    
    .checkbox-wrapper .btn a {
        color: inherit;
        text-decoration: none;
        display: block;
        width: 100%;
        height: 100%;
    }
    /* Navbar Base */






