/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Navbar Styling */
.navbar {
    background-color: #0b72b9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    width: 100vw; /* Make navbar full width */
    position: fixed; /* Fix navbar at the top of the screen */
    top: 0; /* Align to top */
    left: 0; /* Align to left */
    z-index: 1000; /* Ensure it stays on top */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}

.navbar .logo {
    font-size: 2em;
    font-weight: 600;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin-left: 30px;
    position: relative; /* For dropdown positioning */
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.navbar ul li a:hover {
    text-decoration: underline;
}

/* Dropdown Menu */
.navbar ul li .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Position the dropdown */
    background-color: #0b72b9; /* Match navbar background */
    min-width: 150px; /* Set a minimum width */
    right: 0; /* Align dropdown to the right */
    top: 100%; /* Position it below the parent */
    z-index: 1; /* Sit on top of other content */
    max-height: 300px; /* Limit height */
    overflow-y: auto; /* Allow scrolling */
}

.navbar ul li:hover .dropdown-content {
    display: block; /* Show on hover */
}

.dropdown-content a {
    color: white; /* Text color */
    padding: 10px; /* Padding for dropdown links */
    text-decoration: none; /* No underline */
    display: block; /* Make links take up full width */
}

.dropdown-content a:hover {
    background-color: #0a5b8c; /* Darker blue on hover */
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #0b72b9;
        width: 150px;
        display: none;
    }

    .navbar ul.active {
        display: block;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .navbar .menu-toggle {
        font-size: 2em;
        cursor: pointer;
        display: block;
    }
}


body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    padding: 20px;
    padding-top: 100px; /* Adjust based on navbar height */
}




/* Next Step Button Styles */
button[onclick="nextStep(2)"] {
    background-color: #2196F3;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

button[onclick="nextStep(2)"]:hover {
    background-color: #45a049;
}

button[onclick="nextStep(2)"]:active {
    transform: scale(0.98);
}

button[onclick="nextStep(2)"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
}

button[onclick="nextStep(1)"] {
    background-color: #ff0000;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

button[onclick="nextStep(1)"]:hover {
    background-color: #2196F3;
}

button[onclick="nextStep(1)"]:active {
    transform: scale(0.98);
}

button[onclick="nextStep(1)"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.4);
}







/* Add Crew Button Styles */
button[name="add_crew"] {
    background-color: #2196F3;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

button[name="add_crew"]:hover {
    background-color: #1976D2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

button[name="add_crew"]:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

button[name="add_crew"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.4);
}

button[name="add_crew"]:disabled {
    background-color: #B0BEC5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Container Styles */
.button-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center; /* Center align buttons */
}

.button-container button {
    padding: 12px 24px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
}

.button-container button:first-child {
    background-color: #2196F3;
    color: #333;
}

.button-container .secondary-btn {
    background-color: #2196F3;
    color: #000000;
}

.button-container button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: #e0e0e0;
}

.button-container button:active {
    transform: translateY(0);
}

/* Section Styles */
section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

section h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Form Styles */
form {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    margin-bottom: 30px;
}

.step h3 {
    color: #2196F3;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus,
select:focus {
    border-color: #2196F3;
    outline: none;
    box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}


/* Crew Member Inputs Styles */
.crew-member-inputs {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.step {
    display: none;
    margin-bottom: 20px;
}

.step.active {
    display: block;
}
/* Crews Grid Styles */
.crews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.crew-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.crew-card:hover {
    transform: translateY(-5px);
}

.crew-card h3 {
    color: #2196F3;
    margin-bottom: 15px;
}

.crew-card p {
    margin-bottom: 10px;
    color: #666;
}

.crew-members {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.crew-members h4 {
    color: #333;
    margin-bottom: 10px;
}

/* Action Buttons */
.crew-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.action-btn:first-child {
    background-color: #2196F3;
}

.action-btn:last-child {
    background-color: #f44336;
}

.action-btn:hover {
    opacity: 0.9;
}

/* Map Button Styles */
.map-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

/* Form Group Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

/* Form Button Styles */
.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
}

.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    
    .button-container button {
        width: 100%;
    }
    
    section {
        padding: 20px;
    }
    
    .crews-grid {
        grid-template-columns: 1fr;
    }
    
    .crew-card {
        margin-bottom: 15px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}






/* Form field styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* Textarea styles */
.form-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #dedede;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: #2c2c2c;
    box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}

/* Phone input styles */
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dedede;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #2c2c2c;
    box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}

/* Number input styles */
.form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dedede;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #2c2c2c;
    box-shadow: 0 0 0 2px rgba(44, 44, 44, 0.1);
}




.edit-crew-section {
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-crew-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.submit-btn {
    background-color: #007bff; /* Blue background */
    color: #fff; /* White text */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.cancel-btn {
    background-color: #dc3545; /* Red background */
    color: #fff; /* White text */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px; /* Space between buttons */
}

.cancel-btn:hover {
    background-color: #c82333; /* Darker red on hover */
}
