﻿/* ============================================
   Rely On Labor - UNIFIED STYLESHEET
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --accent:        #F97316;
  --accent-hover:  #EA6500;
  --accent-light:  #FFF7ED;
  --accent-dark:   #C2400C;
  --primary-text:  #0f0a28;
  --muted-text:    #3a4a5d;
  --border:        #E5E7EB;
}

/* 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: #d4d4d4; }
@font-face {
  font-family: 'Raleway';
  src: url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ============================================
   LOGIN AND SIGN UP PAGES
   ============================================ */
.text-warnings { color: #dc2626; font-weight: bold; margin-top: 5px; } 

/* ============================================
   Messages
   ============================================ */
.messages-container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
            height: calc(100vh - 120px);
        }
        .messages-layout {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 1.5rem;
            height: 100%;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        /* Conversations List */
        .conversations-panel {
            border-right: 1px solid #ddd;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .conversations-header {
            padding: 1.5rem;
            background: var(--accent);
            color: white;
        }
        .conversations-header h2 {
            margin: 0;
            font-size: 1.4rem;
        }
        .conversations-list {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }
        .conversation-item {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }
        .conversation-item:hover {
            background: #f9f9f9;
        }
        .conversation-item.active {
            background: var(--accent-light);
            border-left: 4px solid var(--accent);
        }
        .conversation-item h3 {
            margin: 0 0 0.3rem 0;
            font-size: 1rem;
            color: var(--primary-text);
        }
        .conversation-item p {
            margin: 0;
            font-size: 0.9rem;
            color: #666;
        }
        .conversation-item .passage-title {
            font-size: 0.85rem;
            color: #999;
            margin-top: 0.3rem;
        }
        .empty-conversations {
            padding: 2rem;
            text-align: center;
            color: #999;
        }
        
        /* Chat Panel */
        .chat-panel {
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .chat-header {
            padding: 1.5rem;
            border-bottom: 1px solid #ddd;
            background: #f9f9f9;
        }
        .chat-header h2 {
            margin: 0 0 0.3rem 0;
            font-size: 1.3rem;
            color: var(--primary-text);
        }
        .chat-header p {
            margin: 0;
            font-size: 0.9rem;
            color: #666;
        }
        .messages-container-inner {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
            background: #fafafa;
        }
        .message {
            margin-bottom: 1rem;
            display: flex;
            flex-direction: column;
        }
        .message.sent {
            align-items: flex-end;
        }
        .message.received {
            align-items: flex-start;
        }
        .message-bubble {
            max-width: 70%;
            padding: 0.8rem 1rem;
            border-radius: 12px;
            word-wrap: break-word;
        }
        .message.sent .message-bubble {
            background: var(--accent);
            color: white;
            border-bottom-right-radius: 4px;
        }
        .message.received .message-bubble {
            background: #fff;
            color: #333;
            border: 1px solid #e0e0e0;
            border-bottom-left-radius: 4px;
        }
        .message-meta {
            font-size: 0.75rem;
            color: #999;
            margin-top: 0.3rem;
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        .message-input-area {
            padding: 1rem 1.5rem;
            border-top: 1px solid #ddd;
            background: white;
        }
        .message-input-form {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .message-input-form textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-family: inherit;
            font-size: 1rem;
            resize: none;
            min-height: 50px;
            max-height: 150px;
            box-sizing: border-box;
        }
        .message-input-form button {
            align-self: flex-end;
            padding: 0.8rem 1.5rem;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.2s;
        }
        .message-input-form button:hover {
            background: var(--accent-hover);
        }
        .message-input-form button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        .no-conversation-selected {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #999;
            font-size: 1.2rem;
        }
        
        @media (max-width: 768px) {
            .messages-layout {
                grid-template-columns: 1fr;
            }
            .conversations-panel {
                display: none;
            }
            .conversations-panel.mobile-show {
                display: flex;
            }
            .chat-panel.mobile-hide {
                display: none;
            }
        }

/* ============================================
   NAVBAR - All Pages
   ============================================ */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; background: #a2a2a2; color: var(--primary-text); width: 100%; box-sizing: border-box; min-height: 44px; border-bottom: 1px solid var(--accent); }
.navbar.public-navbar { background: #a2a2a2; padding: 0.5rem 1rem; }
.nav-logo a { font-size: 1.4rem; line-height: 1; text-decoration: none; font-weight: 700; letter-spacing: 0.5px; }
.nav-logo-link { display: inline-flex; align-items: center; color: var(--primary-text);}
.logo-img{ height: 72px; width: auto; display: block;}
.nav-links { display: flex; gap: 1rem; margin: 0; align-items: center; }
.nav-link { background: var(--accent); color: var(--primary-text); box-shadow: 0 2px 6px; text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.25em 0.7em; transition: background 0.15s, color 0.15s, transform 0.12s; border-radius: 6px;}
.nav-link:hover { background: var(--accent); color: var(--primary-text); border-color: var(--accent); transform: translateY(-1px);  border: 1px solid var(--border); border-radius: 6px;}
.title { font-family: 'Raleway', sans-serif;}

/* ============================================
   HERO SECTION - Homepage
   ============================================ */
.hero { text-align: center; padding: 4rem 1rem 2rem 1rem; background: url('images/construction.jpg') center/cover; color: #fff; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; background-color: rgba(0, 0, 0, 0.15); }
.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: var(--accent); border: 1px solid var(--accent); box-shadow: 2px 2px 5px var(--primary-text); 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: var(--accent); color: #fff; }
.front-search-form { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 auto 0.5rem auto; width: 100%; }
.front-search-form .base-form { max-width: 600px; margin: 0 auto; width: 100%; }
#frontSearchForm { max-width: 600px; }
.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: var(--accent); color: #fff; border: none; box-shadow: 0 2px 6px var(--primary-text); 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: var(--accent-hover); }
.search-desc { color: #3a4a5d; margin-bottom: 2rem; font-size: 1.1rem; }

/* ============================================
   PLACEKIT AUTOCOMPLETE OVERRIDES
   ============================================ */



/* ============================================
   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 var(--accent); padding: 2rem 2rem 1rem 2rem; min-width: 260px; max-width: 340px; box-sizing: border-box; }
.feature-card h3 { color: var(--primary-text); margin-top: 0; }
.feature-card ul { color: #3a4a5d; font-size: 1.05rem; padding-left: 1.2em; }

/* ============================================
   BROWSE PAGES (Passages & Crew)
   ============================================ */

#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: var(--accent); color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; }
#searchForm button:hover { background: var(--accent-hover); }
.bp-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 400px)); gap: 1.25rem; width: 100%; max-width: 1240px; margin: 0 auto; justify-content: center; }
.bp-card { border: 1px solid #ddd; border-radius: 8px; padding: 1rem; margin-bottom: 0; background: #fff; box-sizing: border-box; display: flex; flex-direction: column; aspect-ratio: 1 / 1; overflow: hidden; }
.bp-card.bp-card-promoted { border-top: 3px solid var(--accent); }
.bp-card h3 { margin: 0 0 0.5rem 0; color: var(--primary-text); }
.bp-card p { margin: 0.5rem 0; color: #3a4a5d; }
.sponsored-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 2px 6px; border-radius: 3px; margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.bp-apply { margin-top: auto; padding: 0.6em 1.2em; background: var(--accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer; font-weight: 500; }
.bp-apply:hover { background: var(--accent-hover); }
.bp-contact-captain { margin-top: 0.5rem; margin-left: 0; padding: 0.6em 1.2em; background: #fff; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; cursor: pointer; font-weight: 500; }
.bp-contact-captain:hover { background: var(--accent-light); }
.bp-contact-captain:disabled { background: #ccc; cursor: not-allowed; }

/* ============================================
   VIEW TOGGLE BAR (Browse Pages)
   ============================================ */
section.content { position: relative; }
.view-toggle-bar { display: flex; align-items: center; gap: 0.4rem; position: absolute; top: 1rem; right: 1rem; }
.view-toggle-btn { background: #fff; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 0.35em 1em; font-size: 0.95rem; cursor: pointer; font-weight: 500; transition: background 0.15s, color 0.15s; width: auto; height: auto; margin: 0; }
.view-toggle-btn.active, .view-toggle-btn:hover { background: var(--accent); color: #fff; }

/* ============================================
   LIST VIEW (Browse Pages)
   ============================================ */
.bp-results.list-view { display: block; max-width: 100%; }
.bp-list-item { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid #e0e0e0; padding: 0.75rem 0.5rem; background: #fff; }
.bp-list-item:last-child { border-bottom: none; }
.bp-list-left { flex: 0 0 200px; min-width: 0; }
.bp-list-left strong { display: block; color: var(--primary-text); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-list-middle { flex: 1; min-width: 0; color: #3a4a5d; font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.15rem; }
.bp-list-right { flex: 0 0 auto; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }
.bp-list-right .bp-apply, .bp-list-right .bp-contact-captain { margin: 0; padding: 0.4em 0.9em; font-size: 0.88rem; }
@media (max-width: 700px) {
  .bp-list-item { flex-wrap: wrap; }
  .bp-list-left { flex: 1 1 100%; }
  .bp-list-right { flex-direction: row; flex: 1 1 100%; align-items: flex-start; }
}
.status-badge { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 0.15em 0.55em; border-radius: 12px; margin-bottom: 0.4rem; }
.status-online { color: #1a7a1a; background: #e6f9e6; }
.status-offline { color: #666; background: #f0f0f0; }
.status-closed { color: #7a1a1a; background: #f9e6e6; }
.passage-expired-notice { color: #856404; background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px; padding: 0.75em 1em; font-weight: 500; }



/* ============================================
   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: var(--primary-text); 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: var(--accent); color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; }
#profileForm input[type="submit"]:hover { background: var(--accent-hover); }

/* ============================================
   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: var(--accent); color: white; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; margin-bottom: 10px; }
button:hover { background-color: var(--accent-hover); }
.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: var(--accent); 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: var(--accent-hover); }
.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; }

/* ============================================
   STAR RATINGS
   ============================================ */
.star-rating { display: inline-flex; gap: 0.05em; line-height: 1; vertical-align: middle; }
.star-rating .star { font-size: 1em; }
.star-rating .star-filled { color: #f5a623; }
.star-rating .star-empty { color: #ccc; }

/* Interactive star picker */
.star-interactive { display: inline-flex; gap: 0.1em; line-height: 1; }
.star-interactive .star-btn { font-size: inherit; cursor: pointer; transition: color 0.1s, transform 0.1s; user-select: none; }
.star-interactive .star-btn.star-filled { color: #f5a623; }
.star-interactive .star-btn.star-empty { color: #ccc; }
.star-interactive .star-btn:hover { transform: scale(1.2); }
.star-interactive .star-btn:focus { outline: 2px solid var(--accent); border-radius: 2px; }

/* Review card */
.review-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.review-card-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.review-author { font-weight: 600; color: var(--primary-text); }
.review-date { color: #999; font-size: 0.82rem; margin-left: auto; }
.review-comment { margin: 0; color: #3a4a5d; font-size: 0.95rem; }

/* ============================================
   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: var(--accent); /* Orange 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: var(--accent-hover); /* Darker orange on hover */
            }

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

        .checkbox-container {
            display: flex;
            justify-content: left;
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }

        .checkbox-group input[type="checkbox"] {
            width: 1rem;
            height: 1rem;
            margin-top: 3px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .checkbox-group label {
            width: auto;
            font-size: 0.9rem;
            color: #3a4a5d;
            line-height: 1.4;
            font-weight: normal;
        }

        .checkbox-group label a {
            color: var(--accent);
        }
    
  
    .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;
    }

/* ============================================
   PASSAGE DETAILS - Apply Section
   ============================================ */
.pd-container { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.pd-apply-section { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 2rem; margin-top: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.pd-apply-section h2 { color: var(--primary-text); margin-top: 0; }
.pd-apply-section .form-group { margin-bottom: 1rem; }
.pd-apply-section label { display: block; font-weight: bold; margin-bottom: 0.5rem; color: #333; }
.pd-apply-section textarea { width: 100%; padding: 0.7em; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; font-size: 1rem; resize: vertical; box-sizing: border-box; }
.apply-status-badge { display: inline-block; padding: 0.6em 1.2em; border-radius: 6px; font-weight: 600; font-size: 1rem; }
.apply-status-pending { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.apply-status-accepted { background: #d4edda; color: #155724; border: 1px solid #28a745; }
.apply-status-rejected { background: #f8d7da; color: #721c24; border: 1px solid #dc3545; }

/* ============================================
   APPLICANTS GRID & CARDS
   ============================================ */
.applicants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.applicant-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 1.2rem; gap: 0.5rem; transition: box-shadow 0.2s; }
.applicant-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.applicant-card-rejected { opacity: 0.55; }
.applicant-card-accepted { border-color: #28a745; background: #f0fff4; }
.applicant-thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid #d0dce8; }
.applicant-card-info { width: 100%; }
.applicant-card-name { font-weight: 700; color: var(--primary-text); margin-bottom: 0.3rem; }

/* ============================================
   STAR RATING
   ============================================ */
.star-rating { display: inline-flex; gap: 1px; font-size: 1.1rem; }
.star { color: #ccc; }
.star-filled { color: #f5a623; }

/* ============================================
   EXPERIENCE BADGE
   ============================================ */
.experience-badge { display: inline-block; padding: 0.2em 0.7em; border-radius: 12px; font-size: 0.78rem; font-weight: 700; text-transform: capitalize; background: #e0e0e0; color: #555; }
.exp-beginner  { background: #e3f2fd; color: #1565c0; }
.exp-intermediate { background: #e8f5e9; color: #2e7d32; }
.exp-advanced  { background: #fff3e0; color: #e65100; }
.exp-expert    { background: #fce4ec; color: #880e4f; }

/* ============================================
   STATUS BADGES (application)
   ============================================ */
.status-accepted { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* ============================================
   SKILL CHIPS
   ============================================ */
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-chip { display: inline-block; background: var(--accent-light); color: var(--accent-dark); border-radius: 12px; padding: 0.2em 0.7em; font-size: 0.8rem; font-weight: 500; }

/* ============================================
   CREW PROFILE MODAL
   ============================================ */
.crew-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.crew-modal { background: #fff; border-radius: 10px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.crew-modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #666; width: auto; height: auto; padding: 0.2em 0.5em; margin: 0; }
.crew-modal-close:hover { color: #000; }
.crew-modal-header { display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.5rem; }
.crew-modal-pic { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #d0dce8; flex-shrink: 0; }
.crew-modal-identity { flex: 1; }
.crew-modal-identity h2 { margin: 0 0 0.2rem 0; color: var(--primary-text); font-size: 1.3rem; }
.crew-modal-body { border-top: 1px solid #f0f0f0; padding-top: 1rem; }
.crew-modal-row { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.crew-modal-label { font-weight: 700; color: #555; min-width: 120px; font-size: 0.9rem; padding-top: 0.15em; }
.crew-modal-resume { margin: 0; color: #333; white-space: pre-wrap; font-size: 0.95rem; }
.crew-modal-appmsg { background: var(--accent-light); border-left: 3px solid var(--accent); padding: 0.6em 0.8em; border-radius: 4px; }
.crew-modal-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.crew-modal-reject-btn { background: #e74c3c; color: white; }
.crew-modal-reject-btn:hover { background: #c0392b; }

/* Quick message modal sizing */
.quick-msg-modal { max-width: 500px; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 600px) {
  .applicants-grid { grid-template-columns: 1fr 1fr; }
  .crew-modal-header { flex-direction: column; align-items: center; text-align: center; }
  .crew-modal-row { flex-direction: column; gap: 0.3rem; }
  .crew-modal-label { min-width: unset; }
  .crew-modal-actions { justify-content: center; }
}
@media (max-width: 380px) {
  .applicants-grid { grid-template-columns: 1fr; }
}




/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; box-shadow: 0 -2px 12px rgba(0,0,0,0.25); }
.cookie-banner p { margin: 0; font-size: 0.95rem; flex: 1; line-height: 1.5; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner a:hover { color: var(--accent-light); }
.cookie-banner-btn { background: #fff; color: var(--accent); border: none; border-radius: 6px; padding: 0.45em 1.1em; font-size: 0.95rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.cookie-banner-btn:hover { background: var(--accent-light); color: var(--accent-dark); }
.cookie-banner.hidden { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-btn { align-self: flex-end; }
}
