

/* ==============================
   GLOBAL BASE
   ============================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #0f172a;
    margin: 0;
}

.wf-app-container {
    min-height: 100vh;
}

/* ==============================
   LOGO – center top (middle box)
   ============================== */

.wf-logo-wrap {
    position: fixed;
    top: 40px;          /* উপর থেকে কতটা নিচে থাকবে */
    left: 50%;          /* স্ক্রিনের একদম মাঝখানে */
    transform: translateX(-50%);
    z-index: 9000;
    width: 260px;       /* লাল বক্সের মতো approx সাইজ */
    height: auto;
}

.wf-logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile এ একটু ছোট */
@media (max-width: 768px) {
    .wf-logo-wrap {
        top: 24px;
        width: 180px;
    }
}


/* মোবাইলে একটু ছোট করে দিচ্ছি */
@media (max-width: 768px) {
    .wf-logo-wrap {
        top: 12px;
        left: 12px;
    }
    .wf-logo-wrap img {
        height: 90px;
    }
}


/* শুধু plugin এর ভেতরের লিঙ্ক গুলো neutral রাখছি */
.wf-app-container a {
    color: inherit;
    text-decoration: none;
}

/* back link (← Back to Order) */
.wf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}
.wf-back-link:hover {
    color: #0f172a;
}

/* ==============================
   HERO + DASHBOARD HEADER
   ============================== */

.wf-hero {
    max-width: 1200px;
    margin: 32px auto 16px;
    padding: 24px 24px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #f9fafb;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

/* HERO TOP LOGO */
.wf-hero-logo {
    width: 250px;
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
}

.wf-hero-logo img {
    width: 100%;
    height: auto;
}


.wf-hero h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 600;
}
.wf-hero p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.wf-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 8px 0;
}

.wf-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 4px 16px;
}
.wf-dashboard-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

/* ==============================
   BUTTONS
   ============================== */

.wf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.wf-btn-primary:hover {
    background: #0d6b63;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.4);
}
.wf-btn-primary:active,
.wf-btn-primary:focus-visible {
    background: #0b5c56;
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.4);
    outline: none;
}

.wf-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease, transform 0.05s ease;
}
.wf-btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.wf-btn-outline:active,
.wf-btn-outline:focus-visible {
    background: #e2e8f0;
    border-color: #0f766e;
    color: #0f172a;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.3);
    transform: translateY(1px);
    outline: none;
}

/* stage modal footer buttons */
.wf-btn-outline-red {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #f97373;
    color: #b91c1c;
    background: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.wf-btn-outline-red:hover {
    background: #fef2f2;
    border-color: #ef4444;
}
.wf-btn-green {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.wf-btn-green:hover {
    background: #0d6b63;
}

/* ==============================
   ORDER CARDS (HOME LIST)
   ============================== */

.wf-order-grid {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 8px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.wf-order-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Premium base card style – order + stage দুই জায়গাতেই একই */
.wf-order-card,
.wf-stage-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 20px 22px !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
    transition: all 0.18s ease !important;
    min-height: 170px;
}

/* Hover effect */
.wf-order-card:hover,
.wf-order-card-link:hover .wf-order-card,
.wf-stage-card:hover,
.wf-stage-card-link:hover .wf-stage-card {
    border-color: rgba(20, 184, 166, 0.55) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20) !important;
    transform: translateY(-3px);
}

/* Active / focus */
.wf-order-card:active,
.wf-order-card:focus-within,
.wf-order-card-link:active .wf-order-card,
.wf-stage-card:active,
.wf-stage-card:focus-within,
.wf-stage-card-link:active .wf-stage-card {
    border-color: #0f766e !important;
    box-shadow:
        0 0 0 1px rgba(15,118,110,0.40),
        0 20px 46px rgba(15,23,42,0.22) !important;
    transform: translateY(0);
    outline: none;
}

/* Order card inner layout */
.wf-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.wf-order-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}
.wf-order-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}
.wf-order-sub {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}
.wf-order-meta {
    font-size: 14px;
    color: #374151;
    margin-bottom: 10px;
}

/* Order summary progress */
.wf-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 10px;
}
.wf-progress-bar {
    position: relative;
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.wf-progress-bar span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: #14b8a6;
}
.wf-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.wf-order-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* ==============================
   SINGLE ORDER VIEW + STAGE GRID
   ============================== */

.wf-order-view {
    max-width: 1200px;
    margin: 16px auto 40px;
    padding: 0 8px 24px;
}
.wf-order-view > h2 {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 600;
}
.wf-order-product {
    margin: 0 0 14px;
    font-size: 14px;
    color: #64748b;
}
.wf-order-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 18px;
}

/* stage grid */
.wf-stage-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px !important;
}
.wf-stage-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* Stage icon */
.wf-stage-icon {
    margin-bottom: 10px;
}
.wf-stage-icon img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.2) opacity(0.8);
}

/* Stage title/sub */
.wf-stage-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}
.wf-stage-sub {
    font-size: 14px !important;
    color: #64748b !important;
    margin-bottom: 10px;
}

/* Stage status pill */
.wf-stage-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px !important;
    padding: 4px 11px;
    border-radius: 999px;
    background: #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 500;
}

/* status colours */
.wf-status-pending .wf-stage-status {
    background: #e2e8f0 !important;
    color: #64748b !important;
}
.wf-status-in_progress .wf-stage-status {
    background: #dbeafe !important;
    color: #1d4ed8 !important;
}
.wf-status-revision_requested .wf-stage-status {
    background: #fef3c7 !important;
    color: #92400e !important;
}
.wf-status-approved .wf-stage-status {
    background: #bbf7d0 !important;
    color: #166534 !important;
}

/* files/comments meta row */
.wf-stage-footer {
    margin-top: 14px;
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #475569 !important;
}
.wf-stage-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wf-stage-meta-item svg,
.wf-stage-meta-item i {
    color: #94a3b8 !important;
}

/* Card ভিতরের সব লিঙ্ক – একরকম */
.wf-order-card a,
.wf-stage-card a {
    color: #0f172a !important;
    text-decoration: none !important;
    font-size: inherit !important;
}
.wf-order-card a:hover,
.wf-stage-card a:hover {
    text-decoration: underline !important;
}

/* ==============================
   STAGE MODAL PAGE (app-view.php)
   ============================== */

.wf-stage-page-wrap {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 15px 40px;
}

.wf-stage-modal {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
}

/* header */
.wf-stage-modal-header {
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, #0ea5e9, #0f766e);
    color: #ffffff;
    position: relative;
}
.wf-stage-modal-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
}
.wf-stage-modal-sub {
    margin: 0 0 12px;
    font-size: 14px;
    opacity: 0.95;
}
.wf-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: #bbf7d0;
    color: #065f46;
}
.wf-stage-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 22px;
    color: #e5e7eb;
}

/* body */
.wf-stage-modal-body {
    background: #ffffff;
}
.wf-stage-tabs {
    display: flex;
    gap: 24px;
    padding: 12px 24px 0;
    border-bottom: 1px solid #e5e7eb;
}
.wf-stage-tab {
    padding-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    color: #64748b;
    border-bottom: 2px solid transparent;
}
.wf-stage-tab.active {
    color: #0f172a;
    border-bottom-color: #0f766e;
    font-weight: 500;
}
.wf-stage-tabpanel {
    padding: 20px 24px 24px;
}

/* dropzone */
.wf-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: #f8fafc;
}
.wf-dropzone input[type=file] {
    display: none;
}
.wf-dropzone-label {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}
.wf-drop-icon {
    font-size: 32px;
    opacity: 0.6;
}

.wf-upload-btn-row {
    margin-top: 16px;
    text-align: right;
}
.wf-upload-submit {
    padding: 8px 16px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    border: none;
    font-size: 13px;
    cursor: pointer;
}

/* ==============================
   REAL UPLOAD PROGRESS BAR
   ============================== */

.wf-upload-loading {
    display: none;           /* JS থেকে block করা হবে */
    text-align: center;
    margin-top: 14px;
}
.wf-progress-bar-upload {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}
.wf-progress-inner {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;                /* JS দিয়ে % অনুযায়ী বাড়বে */
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, #22c55e);
    transition: width 0.2s ease;
}
.wf-upload-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

/* files list */
/* ==============================
   FILE GALLERY GRID
   ============================== */

.wf-files-list {
    margin-top: 20px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
}




.wf-file-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    background: #f9fafb;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wf-file-thumb-wrap {
    display: block;
    margin-bottom: 6px;
}

/* FORCE small image thumbnail 200x200 */
.wf-file-thumb {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
}



.wf-file-title {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 3px;
}

.wf-file-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.wf-file-actions {
    text-align: right;
}

.wf-file-actions a {
    font-size: 11px;
    color: #b91c1c;
    text-decoration: none;
}


/* comments */
.wf-comments-list {
    margin-bottom: 18px;
    font-size: 13px;
}
.wf-comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}
.wf-comment-author {
    font-weight: 500;
    font-size: 12px;
    color: #0f172a;
}
.wf-comment-time {
    font-size: 11px;
    color: #94a3b8;
}
.wf-comment-text {
    margin-top: 4px;
    color: #475569;
}
.wf-comment-form textarea {
    width: 100%;
    min-height: 70px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    resize: vertical;
}
.wf-comment-submit {
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

/* modal footer */
.wf-stage-modal-footer {
    padding: 14px 24px 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
/* ==============================
   SRG group inner mini stages
   ============================== */

.wf-stage-group {
    display: flex;
    flex-direction: column;
}

.wf-stage-group-inner {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.wf-stage-mini {
    display: block;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    background: #f9fafb;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.wf-stage-mini:hover {
    background: #eef2ff;
    border-color: #0f766e;
    transform: translateY(-1px);
}

.wf-stage-mini-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wf-stage-mini-status {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.wf-stage-mini-footer {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 12px;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 768px) {
    .wf-hero {
        margin: 20px 8px 12px;
        padding: 18px 16px 16px;
        border-radius: 14px;
    }
    .wf-dashboard-wrapper {
        padding: 0 8px;
    }
    .wf-order-view {
        padding: 0 8px 24px;
    }
    .wf-order-info {
        gap: 10px;
    }
    .wf-stage-page-wrap {
        margin: 20px auto;
    }
    .wf-stage-modal {
        border-radius: 12px;
    }
}
/* FORCE small image thumbnail 200x200 */
.wf-file-thumb {
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* ==============================
   CENTER TOP LOGO (middle box)
   ============================== */
.wf-middle-logo{
    position:absolute;
    top:40px;          
    left:50%;          
    transform:translateX(-50%);
    z-index:9000;
    width:260px;      
    text-align:center;
}
.wf-middle-logo img{
    width:100%;
    height:auto;
    display:block;
}

@media (max-width:768px){
    .wf-middle-logo{
        top:20px;
        width:180px;
    }
}

/* ==========================
   GLOBAL EXIT BUTTON (top-left)
   ========================== */
.wf-exit-btn{
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 999999999; /* সবকিছুর উপরে */
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15,23,42,.35);
}
.wf-exit-btn:hover{
    background:#111827;
}

@media (max-width: 768px){
    .wf-exit-btn{
        top: 8px;
        left: 10px;
        font-size:11px;
        padding:5px 10px;
    }
}
/* ==============================
   WHATSAPP FLOATING BUTTON FINAL
============================== */
#wf-wa-btn {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    left: auto !important;

    width: 48px !important;
    height: 48px !important;

    background: #25D366 !important;
    border-radius: 50% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    padding: 0 !important;
    z-index: 9999999 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.20) !important;
}
/* LANGUAGE DROPDOWN (TOP RIGHT) */
.wf-lang-switch {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 999999999;
}

#wf-language-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.wf-translate-modal{
    position:fixed;top:0;left:0;width:100%;height:100%;
    background:rgba(0,0,0,0.4);
    display:none;justify-content:center;align-items:center;
    z-index:99999;
}
.wf-translate-content{
    background:#fff;padding:20px;border-radius:12px;
    width:90%;max-width:380px;box-shadow:0 10px 40px rgba(0,0,0,.25);
}
.wf-translate-result{margin-top:10px;font-size:14px;color:#333;}
.wf-translate-close{
    margin-top:15px;padding:6px 14px;border:none;background:#0f766e;
    color:#fff;border-radius:6px;cursor:pointer;
}
.wf-translate-btn{
    font-size:11px;color:#0f766e;background:none;border:none;
    margin-top:6px;cursor:pointer;text-decoration:underline;
}

.wf-buyer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 20px 10px;
}

.wf-buyer-column {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wf-buyer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0f172a;
}
.wf-stage-card.wf-has-files{
    border:2px solid #22c55e;
    background:#ecfdf5;
    box-shadow:0 10px 30px rgba(34,197,94,.25);
}
