/* =========================
   Base HTML & Body Styles
   ========================= */
*{
    margin: 0px;
}

html {
    font-size: 14px;
    overflow-x: hidden;
    height: auto;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #182436;
    color: white;
    font-family: 'Arial', sans-serif;
    height: auto;
    overflow-x: hidden;
    text-decoration: none;
    text-decoration-color: white;
}

text {
    text-decoration: none;
}

/* =========================
   Buttons & Forms
   ========================= */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.login-btn {
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-size: 12px;
    margin-right: 5px;
    padding: 12px 1px;
    border: 1px solid white;
    border-radius: 15px;
    font-weight: normal;
    display: inline-block;
    transition: border-color 0.01s ease, color 0.01s ease;
}

    .login-btn:hover {
        border-color: #3b4f6b;
        color: #3b4f6b;
    }

    .login-btn:focus {
        outline: none;
        box-shadow: none;
    }

.btn-outline-secondary {
    color: #d1d1d1;
    border-color: #d1d1d1;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

    .btn-outline-secondary:hover {
        background-color: #d1d1d1;
        color: black;
    }

.btn-outline-primary {
    color: #258cfb;
    border-color: #258cfb;
}

    .btn-outline-primary:hover {
        background-color: #258cfb;
        color: white;
    }

.btn-outline-danger {
    color: #d9534f;
    border-color: #d9534f;
}

    .btn-outline-danger:hover {
        background-color: #d9534f;
        color: white;
    }

.green-btn {
    display: flex;
    background-color: #28a745;
    color: white;
    border: none;
    justify-self: center;
}

    .green-btn:hover {
        background-color: #218838;
    }

.browse-btn {
    background-color: #43586F;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 25px 30px;
    border-radius: 50px;
    align-items: center;
    font-weight: bold;
    transition: background 0s ease-in-out;
}

    .browse-btn:hover {
        background-color: #3b4f6b;
    }

/* =========================
   Navigation
   ========================= */
.navbar {
    background-color: #081624;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 450px;
}

    .nav-icons a {
        flex: 1;
        text-align: center;
    }

    .nav-icons img {
        width: 35px;
        height: auto;
    }

.alljobs {
    text-decoration: none;
    color: #d1d1d1;
}

    .alljobs:hover {
        color: white;
    }

/* =========================
   Hero & How It Works
   ========================= */
.hero {
    background-color: #081624;
    text-align: center;
    padding: 40px 20px;
    color: white;
}

    .hero h2 {
        font-size: 22px;
        font-weight: bold;
    }

    .hero p {
        font-size: 16px;
        margin: 15px auto;
        max-width: 90%;
        color: #d1d1d1;
    }

    .hero .btn {
        background-color: #43586F;
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 15px 25px;
        border-radius: 50px;
        font-weight: bold;
        display: inline-block;
        margin-top: 15px;
    }

        .hero .btn:hover {
            background-color: #3b4f6b;
        }

.how-it-works {
    text-align: center;
    padding: 40px 20px;
    background-color: #182436;
}

    .how-it-works h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

.steps {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    text-decoration: none;
    background-color: #253448;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

    .step h3 {
        text-decoration: none;
        font-size: 18px;
        color: white;
        margin-bottom: 10px;
    }

    .step p {
        text-decoration: none;
        font-size: 14px;
        color: #d1d1d1;
    }

.steptext {
    text-decoration: none;
}

.button-container {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.arrow {
    font-size: 20px;
    font-weight: bold;
}

/* =========================
   Job Listings & Cards
   ========================= */
.job-list-container {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    gap: 25px;
}

.job-container {
    padding: 0px 0px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.job-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
}

.jdate {
}

.job-photo {
    width: 145px;
    height: 100px;
    border-radius: 5px;
    object-fit: cover;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .job-details p {
        margin: 0;
        font-size: 16px;
        text-decoration: none !important;
    }

    .job-details a {
        margin-top: 5px;
        color: #007bff;
        text-decoration: none !important;
    }

        .job-details a:hover {
            text-decoration: underline;
        }

.Jdate {
    display: flex;
    align-self: start;
}

.Jtitle {
    font-weight: 550;
}

.Jlocation {
    font-size: 12px !important;
}

.jobm-photo {
    font-weight: bold;
    margin-bottom: 5px;
    height: 50px;
}

.jobm-title,
.jobm-price {
    font-size: 14px;
    color: white;
}

.service-for {
    text-decoration: none;
    color: white;
}

.applyjob-header {
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.applyjob-photo {
    display: flex;
    border-radius: 15px;
    height: 200px;
    width: fit-content;
    justify-self: center;
    align-items: center;
}

.edit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.jobtitle {
    display: flex;
    justify-self: center;
    padding: 5px;
    font-size: 40px;
}

.truncate {
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rewarddet {
    display: flex;
    justify-self: center;
    font-size: 20px;
}

.myposts-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.myposts-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.card {
    background-color: #253448;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

    .card:hover {
        transform: translateY(-5px);
    }

.card-img-top {
    width: 100%;
    object-fit: cover;
    height: 200px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.card-text {
    font-size: 14px;
    color: #d1d1d1;
}

.card-footer {
    background-color: #253448;
    border-top: none;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
}

/* =========================
   Chat & Messaging
   ========================= */
.chat-container {
    width: 100%;
    padding: 10px;
    background-color: #f9f9f9;
    overflow-y: auto;
    height: 72%;
}


    .chat-container::-webkit-scrollbar {
        width: 0px;
    }

.chat-container-wrapper {
    position: relative;
    max-height: 100vh;
    overflow-y: auto;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 10px 0;
}

    .chat-bubble .chat-name {
        font-weight: bold;
        color: #4a4a4a;
        font-size: 14px;
    }

    .chat-bubble .chat-text {
        background-color: #3b4f6b;
        color: white;
        padding: 10px 15px;
        border-radius: 15px;
        max-width: 70%;
        word-wrap: break-word;
        font-size: 16px;
        margin-top: 5px;
    }

    .chat-bubble .chat-timestamp {
        font-size: 12px;
        color: #a9a9a9;
        margin-top: 5px;
        align-self: flex-end;
    }

.chat-bubble2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px 0;
}

    .chat-bubble2 .chat-name {
        font-weight: bold;
        color: #4a4a4a;
        font-size: 14px;
    }

    .chat-bubble2 .chat-text {
        background-color: #e1e1e1;
        color: #333;
        padding: 10px 15px;
        border-radius: 15px;
        max-width: 70%;
        word-wrap: break-word;
        font-size: 16px;
        margin-top: 5px;
    }

    .chat-bubble2 .chat-timestamp {
        font-size: 12px;
        color: #a9a9a9;
        margin-top: 5px;
        align-self: flex-start;
    }

.message-form {
    width: 100%;
}

    .message-form .input-group {
        display: flex;
        align-items: center;
        justify-content: center;
        justify-items: center;
        justify-self: center;
        background-color: white;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .message-form input[type="text"] {
        flex: 1;
        border: none;
        outline: none;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 30px;
        background-color: transparent;
    }

        .message-form input[type="text"]:focus {
            outline: none;
            border: 1px solid #4a4a4a;
        }

    .message-form button.send-button {
        background-color: transparent;
        border: none;
        padding: 10px;
        cursor: pointer;
    }

        .message-form button.send-button i {
            font-size: 24px;
        }

.message-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    align-self: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 22px;
    width: 200px;
    height: 50px;
    text-align: center;
    justify-self: center;
}

.jobs-messege-button {
    display: flex;
    justify-content: center;
    text-align: center;
}

.postedtime {
    display: flex;
    margin-left: 45px;
}

.chat-job-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Add this */
    background-color: #253448;
    padding: 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.chat-job-photo {
    width: 80px;
    height: auto;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}
.chat-job-info-text {
    font-size: 16px;
    font-weight: 500;
    flex-grow: 1; /* allow it to take available space */
    margin-left: 10px; /* small margin from the image */
}

.messagename {
    color:white;
    background-color: #253448;
    padding: 10px;
    text-align: center;
    width: 100%;
    font-size:20px;
}
/* =========================
   Responsive Design
   ========================= */
/* Tablet and up */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .hero h2,
    .how-it-works h2 {
        font-size: 26px;
    }

    .steps {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .step {
        width: 30%;
    }

    .job-info {
    }

    .browse-btn {
        padding: 15px 20px;
    }

    .job-photo {
        width: 100%;
        height: auto;
    }
}
/* Card footer and columns for mobile */
@media (max-width: 768px) {
    .col-md-4 {
        width: 100%;
    }

    .card-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* Message form for small screens */
@media (max-width: 480px) {
    .message-form .input-group {
        padding: 12px 16px;
    }

    .message-form input[type="text"] {
        font-size: 16px;
    }

    .message-form button.send-button {
        padding: 10px;
    }

        .message-form button.send-button i {
            font-size: 26px;
        }
}





@media (min-width: 992px) {
    .job-list-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        padding: 20px;
        justify-content:center;
        text-align:center;
    }

    .job-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        background-color: #253448;
        border-radius: 13px;
        transition: transform 0.2s ease-in-out;
    }

        .job-container:hover {
            transform: translateY(-5px);
        }

    .job-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 20em;
        justify-content:center;
        justify-items:center;
    }

    .job-photo {
        width: 100%;
        height: 160px;
    }

    .Jdate {
        align-self: center;
        font-size: 12px;
        color: #d1d1d1;
    }

    .truncate {
        width: 100%;
    }
}




#desktop-warning {
    background-color: #ffdddd;
    color: #990000;
    padding: 1rem;
    text-align: center;
    width: 100%;
    z-index: 9999;
}

