﻿/* ============================================
   PASSAGE MAKER - UNIFIED STYLESHEET
   ============================================ */

/* Global Styles */
* { box-sizing: border-box; }
html, body { width: 100vw; max-width: 100vw; overflow-x: hidden; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #ffffff; }

/* ============================================
   NAVBAR - All Pages
   ============================================ */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; background: #0b2340; color: #fff; width: 100%; box-sizing: border-box; min-height: 44px; }
.navbar.public-navbar { background: #0b2340; padding: 0.5rem 1rem; }
.nav-logo a { color: #fff; font-size: 1.4rem; line-height: 1; text-decoration: none; font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 1rem; margin: 0; align-items: center; }
.nav-link { color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 0.25em 0.7em; transition: background 0.15s, transform 0.12s; }
.nav-link:hover { background: rgba(255,255,255,0.06); transform: translateY(-1px); }

/* ============================================
   HERO SECTION - Homepage
   ============================================ */
.hero { text-align: center; padding: 4rem 1rem 2rem 1rem; background: linear-gradient(135deg, rgba(11, 35, 64, 0.75) 0%, rgba(11, 35, 64, 0.5) 100%), url('images/sailboat.jpeg') center/cover; color: #fff; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; }
.subtitle { color: #f0f0f0; font-size: 1.2rem; margin-bottom: 2rem; }
.search-toggle-bar { display: flex; justify-content: center; gap: 1rem; margin: 0 auto 1rem auto; max-width: 600px; }
.toggle-btn { background: #fff; color: #0b2340; border: 1px solid #0b2340; border-radius: 6px 6px 0 0; padding: 0.7em 2em; font-size: 1.1rem; cursor: pointer; font-weight: 500; transition: background 0.2s, color 0.2s; }
.toggle-btn.active, .toggle-btn:hover { background: #0b2340; color: #fff; }
.front-search-form { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin: 0 auto 0.5rem auto; max-width: 600px; width: 100%; flex-wrap: wrap; }
.front-search-form input[type="text"], .front-search-form input[type="date"] { padding: 0.7em 1em; border: 1px solid #bbb; border-radius: 6px; font-size: 1rem; min-width: 0; max-width: 100%; }
.front-search-form button { background: #1f7a1f; color: #fff; border: none; border-radius: 6px; padding: 0.7em 2em; font-size: 1.1rem; cursor: pointer; font-weight: 500; min-width: 0; max-width: 100%; }
.front-search-form button:hover { background: #155a15; }
.search-desc { color: #3a4a5d; margin-bottom: 2rem; font-size: 1.1rem; }

/* ============================================
   FEATURES SECTION - Homepage
   ============================================ */
.features { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0; flex-wrap: wrap; max-width: 100vw; }
.feature-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px #0001; padding: 2rem 2rem 1rem 2rem; min-width: 260px; max-width: 340px; box-sizing: border-box; }
.feature-card h3 { color: #0b2340; margin-top: 0; }
.feature-card ul { color: #3a4a5d; font-size: 1.05rem; padding-left: 1.2em; }

/* ============================================
   BROWSE PAGES (Passages & Crew)
   ============================================ */
.bp-container { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; padding: 2rem; max-width: 100vw; }
.bp-container header { margin-bottom: 1.5rem; }
.bp-container h1 { color: #0b2340; margin: 0; font-size: 2rem; }
.bp-search-panel { margin-bottom: 1.5rem; }
#searchForm { display: flex; gap: 0.5rem; flex-wrap: wrap; }
#searchForm input, #searchForm select { padding: 0.7em 1em; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; }
#searchForm button { padding: 0.7em 1.5em; background: #0b79d0; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; }
#searchForm button:hover { background: #0a5fa8; }
.bp-results-map { display: flex; gap: 1.5rem; }
.bp-results { flex: 1; max-width: 500px; overflow-y: auto; max-height: 600px; }
.bp-map { flex: 2; min-height: 420px; background: #eef; border-radius: 6px; }
.bp-card { border: 1px solid #ddd; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; background: #fff; }
.bp-card h3 { margin: 0 0 0.5rem 0; color: #0b2340; }
.bp-card p { margin: 0.5rem 0; color: #3a4a5d; }
.bp-apply { margin-top: 0.8rem; padding: 0.6em 1.2em; background: #1f7a1f; color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-weight: 500; }
.bp-apply:hover { background: #155a15; }
.bp-message { margin-top: 1rem; color: #666; font-style: italic; }
.empty { color: #666; font-style: italic; }

/* ============================================
   PROFILE CONTAINER
   ============================================ */
.center-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.profile-container { display: flex; justify-content: space-between; gap: 2rem; width: 85%; max-width: 1200px; margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
.profile-info, .profile-update { flex: 1; }
.profile-info h2, .profile-update h2 { color: #0b2340; margin-top: 0; }
.profile-info p { font-size: 1.1em; color: #3a4a5d; margin-bottom: 1rem; }
#profileForm input[type="text"], #profileForm input[type="email"] { width: 100%; padding: 0.8em; margin: 0.5em 0 1em 0; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
#profileForm input[type="submit"] { padding: 0.8em 1.5em; background: #0b79d0; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; }
#profileForm input[type="submit"]:hover { background: #0a5fa8; }

/* ============================================
   AUTOCOMPLETE & MODAL
   ============================================ */
.autocomplete-items { position: absolute; border: 1px solid #d4d4d4; border-bottom: none; border-top: none; z-index: 99; top: 100%; left: 0; right: 0; }
.autocomplete-items div { padding: 10px; cursor: pointer; background-color: #fff; border-bottom: 1px solid #d4d4d4; }
.autocomplete-items div:hover { background-color: #e9e9e9; }
.modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); }
.modal-content { background-color: white; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; height: 50%; }
.form-step { display: none; }
.form-step.active { display: block; }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
.close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.base-form { display: flex; flex-direction: column; justify-content: center; width: 100%; }
/* Removed #createJobForm width override to allow full-width inheritance */
#createJobForm { width: 100%; }
#content { width: 100%; height: 150px; }
label, input, button { width: 100%; margin: 2px 0; }
label { font-weight: bold; }
input { padding: 8px; border: 1px solid #ccc; border-radius: 5px; }
button { width: 300px; height: 50px; padding: 8px; background-color: #ccc; color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; margin-bottom: 10px; }
button:hover { background-color: #0056b3; }
.form-navigation { width: 50%; }

/* ============================================
   SELECTABLE BOXES & CONTAINERS
   ============================================ */
.selectable-box { display: flex; justify-content: center; align-items: center; width: 300px; height: 250px; margin: 20px; background-color: #007bff; color: white; font-size: 20px; text-align: center; border-radius: 10px; cursor: pointer; transition: background-color 0.3s; text-decoration: none; }
.selectable-box:hover { background-color: #0056b3; }
.boxes-container { display: flex; justify-content: center; align-items: center; height: 80vh; flex-wrap: wrap; }

/* ============================================
   UTILITIES
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
    .features { flex-direction: column; align-items: center; }
    .profile-container { flex-direction: column; }
    .bp-results-map { flex-direction: column; }
    .bp-map { min-height: 300px; }
    .navbar { padding: 0rem 0rem; }
    .nav-logo a { font-size: 1rem; }
    .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .hero { padding: 2rem 0.5rem 1rem 0.5rem; }
    .hero h1 { font-size: 1.3rem; }
    .search-toggle-bar { gap: 0.5rem; }
    .toggle-btn { padding: 0.5em 1.5em; font-size: 0.95rem; }
    #searchForm { gap: 0.25rem; }
    #searchForm input, #searchForm select { font-size: 0.95rem; padding: 0.5em 0.8em; }
}

/* ============================================
   LOGIN AND SIGN UP FORM STYLES
   ============================================ */
        /* Center the form in the container */
        .auth-container {
            flex-direction: column;
            background-color: white; /* White background for the form */
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a raised effect */
        }

        /* Style the form elements */
        

        .lower-auth-form {
            text-align: center;
        }   

        .upper-auth-form {
            padding-left: 30px;
            padding-right: 30px;
            display: float;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
        }

        label, input, button {
            width: 100%;
            margin: 5px 0; /* Spacing between elements */
        }

        label {
            font-weight: bold; /* Bold labels */
        }

        input {
            padding: 8px;
            border: 1px solid #ccc; /* Light border for inputs */
            border-radius: 5px; /* Rounded corners for inputs */
        }

        button {
            padding: 10px;
            background-color: #007bff; /* Blue background for the button */
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer; /* Pointer cursor for button */
            transition: background-color 0.3s; /* Smooth transition for hover effect */
        }

            button:hover {
                background-color: #0056b3; /* Darker blue on hover */
            }

        /* Style for the message paragraph */
        #loginMessage {
            color: red;
            font-weight: bold; /* Bold message text */
            margin-top: 5px; /* Space above the message */
        }

        .checkbox-container {
            display: flex;
            justify-content: left;
        }
    
    /* ============================================
       CONTACT THE CAPTAIN BUTTON
       ============================================ */
    .bp-contact-captain {
      background-color: #007bff;
      color: white;
      border: none;
      padding: 10px 15px;
      margin-top: 10px;
      cursor: pointer;
      border-radius: 5px;
    }

    .bp-contact-captain:hover {
      background-color: #0056b3;
    }
  
    .jobcontainer {
        display: flex;
        width: 50%;
        min-width: 500px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: white; /* White background for the form */
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for a raised effect */
    }

    .form-group-inline{
    display: flex;
    gap: 20px;
    margin-bottom: 2px;
    width: 100%;
    }
    .form-group-inline .form-group{
    flex: 1;
    }
    .form-group{
    margin-bottom: 2px;
    }

