﻿body {
    background: #f6f8fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-title {
    text-align: center;
    font-weight: 700;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Form Box */
.formBox {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    max-width: 992px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

    .formBox:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    }

/* Info Blocks */
.infoColumn {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.infoBlock {
    width: 50%;
    display: flex;
    background: #f9fafc;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 15px 20px;
    transition: background 0.3s;
}

    .infoBlock:hover {
        background: #eef3f7;
    }

.infoLabel {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 15px;
    margin-right: 20px;
}

.infoValue {
    font-size: 16px;
    color: #2c3e50;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #dfe6ed;
    padding: 8px 10px;
}

/* Buttons */
.btnRow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    min-width: 125px;
}

    .btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-Inventory {
    background-color: #007bff;
}

    .btn-Inventory:hover {
        background-color: #0069d9;
    }

.btn-complete {
    background-color: #28a745;
}

    .btn-complete:hover {
        background-color: #218838;
    }

.btn-risk {
    background-color: #ffc107;
    color: #333;
}

    .btn-risk:hover {
        background-color: #e0a800;
    }

.btn-capped {
    background-color: #007bff;
}

    .btn-capped:hover {
        background-color: #0069d9;
    }

.btn-abortive {
    background-color: #dc3545;
}

    .btn-abortive:hover {
        background-color: #c82333;
    }

.btn-incomplete {
    background-color: #6c757d;
}

    .btn-incomplete:hover {
        background-color: #5a6268;
    }

.btn-note {
    background-color: #007bff;
}

    .btn-note:hover {
        background-color: #0056b3;
    }

.btn-attend {
    background: linear-gradient(135deg, #28a745, #3fd57a);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

    .btn-attend:hover {
        background: linear-gradient(135deg, #1e7e34, #36b36a);
        transform: translateY(-2px);
    }

.btn-cannot {
    background: linear-gradient(135deg, #ff4d4d, #ff9966);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

    .btn-cannot:hover {
        background: linear-gradient(135deg, #e60000, #ff7043);
        transform: translateY(-2px);
    }

.btn-back {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

    .btn-back:hover {
        background: linear-gradient(135deg, #5a6268, #495057);
        transform: translateY(-2px);
    }

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #17a589);
    transform: translateY(-2px);
}

/* Textareas */
#Desc,
#Desc1,
#Reason {
    width: 32rem;
    border-radius: 10px;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

.modal-header {
    color: white;
    text-align: center;
}

    .modal-header h4 {
        font-weight: 600;
        margin: 0;
    }

.modal-body {
    background: #f9f9f9;
    padding: 20px;
}

.modal-footer {
    background: #f1f1f1;
    border-top: none;
}

.form-label {
    font-weight: 500;
}

/* Upload Sections */
#uploadSection,
#incompleteSection {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.file-upload-wrapper {
    position: relative;
    display: inline-block;
}

.file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.custom-file-label {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

    .custom-file-label:hover {
        background: linear-gradient(135deg, #0056b3, #520dc2);
    }

    .custom-file-label i {
        margin-right: 8px;
    }

input[type="file"] {
    padding-bottom: 30px;
    border-radius: 10px;
}

    input[type="file"]::file-selector-button {
        border: 2px solid #6c5ce7;
        padding: 0.2em 0.4em;
        border-radius: 0.2em;
        background-color: #28a745;
        transition: 1s;
    }

/* Verify Code Page */
.verify-wrapper {
    display: flex;
    justify-content: center;
}

.verifyBox {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 25px 20px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.code-block {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.code-input {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    font-size: 20px;
    letter-spacing: 3px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.btn-verify {
    width: 100%;
    max-width: 250px;
    margin-top: 15px;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
}

/* Full Screen Loading Spinner */
#subbyLoadingOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(246, 248, 250, 0.85) !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.subbyLoaderBox {
    text-align: center;
    padding: 24px 34px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

.subbySpinner {
    width: 52px;
    height: 52px;
    border: 6px solid #e3e6ea;
    border-top: 6px solid #28a745;
    border-radius: 50%;
    animation: subbySpin 0.8s linear infinite;
    margin: 0 auto 12px auto;
}

.subbySpinnerText {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

@keyframes subbySpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Today's Jobs Page */
.jobsPageWrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.jobsSummary {
    text-align: center;
    margin-bottom: 20px;
}

    .jobsSummary span {
        display: inline-block;
        background: #ffffff;
        color: #2c3e50;
        border: 1px solid #dfe6ed;
        border-radius: 999px;
        padding: 9px 20px;
        font-weight: 700;
        font-size: 14px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    }

.jobsList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jobCard {
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-radius: 16px;
    padding: 22px 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

    .jobCard:hover {
        background: #f9fafc;
        transform: translateY(-3px);
        box-shadow: 0 9px 28px rgba(0, 0, 0, 0.14);
        border-color: #cfd8e3;
    }

.jobCardLeft {
    display: flex;
    align-items: center;
    gap: 18px;
}

.jobIcon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef3f7, #dfe9f3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.jobDetails {
    display: flex;
    gap: 28px;
    align-items: center;
}

.jobIdText,
.jobPostcodeText {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .jobIdText span,
    .jobPostcodeText span {
        font-size: 13px;
        color: #6c757d;
        font-weight: 600;
    }

    .jobIdText strong,
    .jobPostcodeText strong {
        font-size: 17px;
        color: #2c3e50;
    }

.jobCardRight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    font-weight: 700;
}

.openJobText {
    font-size: 14px;
}

.openJobArrow {
    font-size: 30px;
    line-height: 1;
}

.emptyJobsBox {
    background: #ffffff;
    border-radius: 16px;
    padding: 42px 30px;
    text-align: center;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.08);
    color: #2c3e50;
}

.emptyIcon {
    font-size: 42px;
    margin-bottom: 10px;
}

.emptyJobsBox h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
}

.emptyJobsBox p {
    margin: 0;
    color: #6c757d;
}

/* Tablet and Mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-content {
        border-radius: 8px;
    }

    .jobsPageWrapper {
        padding: 0 12px;
    }

    .jobCard {
        padding: 18px;
        align-items: flex-start;
    }

    .jobCardLeft {
        gap: 12px;
    }

    .jobIcon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .jobDetails {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .openJobText {
        display: none;
    }

    .openJobArrow {
        font-size: 28px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .infoColumn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .infoBlock {
        width: 100%;
    }

    .formBox {
        margin: 0 10px;
        padding: 25px 20px;
    }

    #Desc {
        width: 100%;
    }

    .code-input {
        max-width: 100%;
        font-size: 18px;
    }

    .btn-verify {
        max-width: 100%;
        font-size: 18px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    #Desc,
    #Desc1,
    #Reason {
        width: 100%;
    }
}
