/* ========================================================= */
/* === 1. GLOBAL & BASE STYLES (Applies to all pages) === */
/* ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: #333;
    /* Default background for content pages */
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s, background-color 0.3s;
}

/* --- Input Group Base Styling --- */
.input-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #ff8c00;
    outline: none;
}

/* --- Buttons --- */
/* Primary (Orange) Button */
.btn-primary {
    background-color: #ff8c00;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #cc7000;
}

/* Secondary (Dark Blue) Button */
.btn-secondary {
    background-color: #1a4269;
    color: #ffffff !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center; /* Center content within button */
}

.btn-secondary:hover {
    background-color: #113350;
}

/* ========================================================= */
/* === 2. HEADER & FOOTER STYLES (Applies to all pages) === */
/* ========================================================= */

/* --- Header / Navbar --- */
.navbar {
    background-color: #003b85; /* Dark Royal Blue */
    padding: 12px 0;
    border-bottom: 4px solid #f39c12; /* Orange Border */
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO AREA --- */
.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* space between logo and text */
}

.logo img {
    height: 70px;
    width: 70px;
    background: #ffffff;
    padding: 10px;
    border-radius: 50%;
    object-fit: contain;
}

.office-name {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.office-location {
    font-size: 1.1rem;
    color: #dce6f7;
    margin-top: 4px;
}

/* --- NAV LINKS (Home + Verify Order) --- */
.nav-links a {
    color: #ffffff;
    margin-left: 25px;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 15px;
    transition: 0.3s;
}

.nav-links a:hover:not(.btn-primary) {
    color: #f39c12; /* Orange hover */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

/* --- OFFICIAL LOGIN BUTTON (Orange Button) --- */
.btn-primary {
    background-color: #f39c12;
    color: #000 !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #d98a0f;
}

/* --- Footer --- */
footer {
    background-color: #1a4269;
    color: #ffffff;
    padding: 20px 0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

/* ========================================================= */
/* === 3. LANDING PAGE STYLES (index.html) === */
/* ========================================================= */
main.landing-main {
    padding: 80px 0;
    text-align: center;
}

.main-title {
    font-size: 2.5rem;
    color: #1a4269;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.action-buttons .btn-action {
    font-size: 1.1rem;
    border: 1px solid #1a4269;
}

/* Custom styling for the "Official Login" button on the landing page */
.action-buttons .btn-primary {
    background-color: #fff;
    color: #1a4269 !important;
    border: 1px solid #ccc;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons .btn-primary:hover {
    background-color: #f0f0f0;
}

/* --- Feature Cards --- */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 20px 0;
}

.card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 3px solid transparent;
    transition: transform 0.3s, border-top-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-top-color: #ff8c00;
}

.icon-box {
    color: #1a4269;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.5rem;
    color: #1a4269;
    margin-bottom: 5px;
}

.card .for-text {
    color: #ff8c00;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* ========================================================= */
/* === 4. LOGIN PAGE STYLES (login.html) === */
/* ========================================================= */

/* IMPORTANT: Requires <body class="login-page"> in login.html */
body.login-page {
    background-color: #1a4269;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 400px;
}

.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    height: 60px;
    margin-bottom: 10px;
}

.login-header h2 {
    color: #1a4269;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 5px;
}

.forgot-password {
    color: #007bff;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #1a4269;
    font-weight: 500;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

/* --- Floating Animation --- */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.8;
    }
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out alternate;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    animation-duration: 18s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 5%;
    right: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-duration: 20s;
    animation-delay: 4s;
}

/* ========================================================= */
/* === 5. FORM PAGE STYLES (issue-order.html) === */
/* ========================================================= */

.form-main {
    padding: 40px 0 80px;
    background-color: #f8f8f8;
}

.form-page-title {
    font-size: 2rem;
    color: #1a4269;
    margin-bottom: 5px;
}

.form-page-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Grid for the two main columns */
.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.form-panel {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-panel h2 {
    color: #1a4269;
    font-size: 1.4rem;
    margin-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.panel-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 25px;
}

/* Form Layout */
.form-row {
    margin-bottom: 20px;
}

.form-row.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Date Input Styling */
.date-input-wrapper {
    position: relative;
}

.date-input-wrapper input {
    padding-right: 40px;
}

.calendar-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a4269;
    pointer-events: none;
}

/* Upload Box Styling */
.upload-box-group {
    margin-top: 30px;
}

.upload-box {
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

.upload-box:hover {
    border-color: #ff8c00;
    background-color: #fffaf5;
}

.upload-icon {
    font-size: 2.5rem;
    color: #1a4269;
    margin-bottom: 10px;
}

.upload-box p {
    font-weight: 400;
    color: #555;
}

.upload-box small {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* Submit Button */
.form-submit-btn {
    width: 100%;
    margin-top: 30px;
    font-size: 1.1rem;
    padding: 12px 20px;
    background-color: #1a4269;
}

/* Document Review Panel */
.document-review-panel {
    min-height: 500px;
}

.review-placeholder {
    text-align: center;
    margin-top: 80px;
    color: #aaa;
}

.placeholder-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 15px;
}

.placeholder-small {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ========================================================= */
/* === 6. RESPONSIVENESS (MEDIA QUERIES) === */
/* ========================================================= */

/* Tablet (768px and down) */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-content {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        margin-bottom: 10px;
    }
    .nav-links a {
        margin: 0 10px;
        padding: 5px 10px;
    }
    .main-title {
        font-size: 2rem;
    }

    /* Landing Page Cards */
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Form Page */
    .form-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 20px;
    }
    .document-review-panel {
        min-height: auto;
    }
}

/* Mobile (576px and down) */
@media (max-width: 576px) {
    /* Navbar */
    .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .office-location {
        display: block;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .nav-links a {
        margin: 5px 0;
    }

    /* Landing Page Action Buttons */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn-action {
        width: 80%;
        margin: 0 auto;
    }

    /* Landing Page Cards */
    .feature-cards {
        grid-template-columns: 1fr;
    }

    /* Login Page Options */
    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Form Page */
    .form-row.two-cols {
        grid-template-columns: 1fr; /* Stack form rows vertically */
    }
    .form-panel {
        padding: 20px;
    }
}
/* --------------------------------------------------------------------------------------------------------------------------- */

/* ========== GLOBAL RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

/* ========== APP LAYOUT (50% – 50%) ========== */
.app {
    display: flex;
    padding: 30px;
    gap: 30px;
}

.left-panel {
    width: 50%;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.right-panel {
    width: 50%;
    background: #eef2f7;
    padding: 20px;
    border-radius: 16px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.06);
}

/* FORM --------------------------------------------------- */
.fancy-form h2 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #1b2a3a;
}

.field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #37475b;
}

/* LIGHT INPUT BOXES */
.field input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfd7df;
    background: #f8fafc;
    font-size: 15px;
    color: #333;
    transition: 0.2s;
}

.field input:focus {
    outline: none;
    border-color: #4b9cff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(75, 156, 255, 0.3);
}

/* FILE INPUT */
.field input[type="file"] {
    padding: 10px;
}

/* BUTTONS ------------------------------------------------ */
.controls {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.controls button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

/* Default Button */
#generateQrBtn {
    background: #0078ff;
    color: #fff;
}
#generateQrBtn:hover {
    background: #0063d6;
}

/* Secondary Button */
.secondary {
    background: #e6ebf1;
    color: #333;
}
.secondary:hover {
    background: #d3dae3;
}

/* Primary Export Button */
.primary {
    background: #13b168;
    color: #fff;
}
.primary:disabled {
    background: #93d8ba;
    cursor: not-allowed;
}

/* HELP TEXT */
.help small {
    margin-top: 10px;
    color: #556579;
    font-size: 12px;
}

/* ============================================================= */
/* ========== MERGED QR PREVIEW (YOUR CSS ADDED CLEANLY) ========== */
/* ============================================================= */

.preview-qr {
    margin-top: 18px;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.preview-qr h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1b2a3a;
}

.qr-preview-box {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.05)
    );
    border-radius: 10px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    padding: 12px;
}

.qr-preview-box canvas,
.qr-preview-box img {
    max-width: 100%;
    max-height: 100%;
}

/* QR ACTIONS */
.qr-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.qr-actions button {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #444;
    cursor: pointer;
}
.qr-actions button:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* ============================================================= */

/* PDF VIEW AREA ----------------------------------------------- */
.right-panel {
    flex: 1;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-container {
    position: relative;
    background: #07101a;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 640px;
    overflow: hidden;
}

/* The canvas fills available width but keeps aspect ratio */
#pdfCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    border-radius: 6px;
}

/* Overlay used for placing QR DOM elements on top of the canvas */
.overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: auto;
}

/* Placed QR image */
.placed-qr {
    position: absolute;
    width: 120px;
    height: 120px;
    touch-action: none;
    cursor: grab;
    user-select: none;
    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: box-shadow 0.12s;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.6);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.placed-qr:active {
    cursor: grabbing;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.status {
    padding: 10px 14px;
    color: var(--muted);
    font-size: 13px;
    border-radius: 8px;
}
small {
    color: var(--muted);
}

/* =============================varify pag css start here========================================================================= */

/* ================= VERIFY PAGE UPDATED CSS ================= */

.main-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.main-container h1 {
    color: #0a2f6d;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-container .subtitle {
    color: #5f6c85;
    font-size: 15px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.main-container .card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 35px;
    max-width: 720px;
    margin: 0 auto;
    border-top: 5px solid #0a2f6d;
}

.main-container .card h3 {
    text-align: left;
    font-size: 19px;
    color: #111;
    margin-bottom: 5px;
}

.main-container .card p {
    text-align: left;
    font-size: 14px;
    color: #666;
    margin-bottom: 18px;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    gap: 12px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.search-box input:focus {
    border-color: #0a2f6d;
}

.search-box button {
    background: #0a2f6d;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 22px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #07244f;
}

/* OR DIVIDER */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    font-size: 13px;
    color: #777;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    margin: 0 10px;
    font-weight: 500;
}

/* QR SCAN BOX */
.qr-box {
    border: 2px dashed #0a2f6d;
    border-radius: 12px;
    padding: 35px 15px;
    color: #0a2f6d;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    background: #f6f9ff;
}

.qr-box:hover {
    background: #e8efff;
}

/* STATUS AREA */
.status-area {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 280px;
    text-align: left;
}

.status span {
    font-size: 26px;
    line-height: 1;
}

.status h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.status p {
    font-size: 13px;
    color: #666;
}

.status.valid span {
    color: #1ca34a;
}

.status.invalid span {
    color: #e53935;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 600px) {
    .main-container h1 {
        font-size: 24px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        width: 100%;
        padding: 12px;
    }

    .status-area {
        gap: 30px;
    }
}
/* ----------------------------------------------------------------------------------------- */

/* ================= VERIFIED DOCUMENT PAGE ================= */

.verified-page {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #1a4269;
    font-weight: 600;
}

/* VERIFIED ALERT */
.verified-alert {
    background: #ecfdf3;
    border: 1px solid #2ecc71;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    color: #145a32;
    text-align: left;
}

.verified-alert p {
    font-size: 13px;
    margin-top: 4px;
}

/* DOCUMENT CARD */
.verified-doc-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
}

/* HEADER */
.doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.doc-logo img {
    height: 60px;
}

.doc-title h2 {
    font-size: 20px;
    color: #1a4269;
}

.doc-title p {
    font-size: 13px;
    color: #666;
}

.doc-qr img {
    height: 80px;
}

/* META INFO */
.doc-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.doc-meta label {
    font-size: 11px;
    color: #999;
}

.doc-meta p {
    font-weight: 600;
    margin-top: 4px;
}

/* INFO BOX GRID */
.doc-box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.doc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 8px;
}

.doc-box label {
    font-size: 11px;
    color: #777;
}

.doc-box p {
    font-weight: 600;
    margin-top: 3px;
}

/* SECTIONS */
.doc-section {
    margin-bottom: 18px;
}

.doc-section label {
    font-size: 12px;
    color: #888;
}

.doc-section p {
    font-size: 14px;
    margin-top: 4px;
}

/* SIGNATURE */
.doc-signature {
    background: #f0f4ff;
    border: 1px dashed #1a4269;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 12px;
}

/* DOWNLOAD BUTTON */
.download-btn {
    display: block;
    margin-top: 25px;
    background: #003b85;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.download-btn:hover {
    background: #002d62;
}

/* MOBILE */
@media (max-width: 600px) {
    .doc-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .doc-meta {
        flex-direction: column;
        gap: 10px;
    }

    .doc-box-grid {
        grid-template-columns: 1fr;
    }
}
