
@media (min-width: 981px) {
@font-face {
    font-family: "YekanBakh";
    src: url("./assets/fonts/woff2/YekanBakh-Regular.woff2") format("woff2"),
        url("/bitbanks/assets/fonts/woff2/YekanBakh-Regular.woff2") format("woff2"),
        url("/assets/fonts/woff2/YekanBakh-Regular.woff2") format("woff2"),
        url("./assets/fonts/woff/YekanBakh-Regular.woff") format("woff"),
        url("/bitbanks/assets/fonts/woff/YekanBakh-Regular.woff") format("woff"),
        url("/assets/fonts/woff/YekanBakh-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "YekanBakh";
    src: url("./assets/fonts/woff2/YekanBakh-SemiBold.woff2") format("woff2"),
        url("/bitbanks/assets/fonts/woff2/YekanBakh-SemiBold.woff2") format("woff2"),
        url("/assets/fonts/woff2/YekanBakh-SemiBold.woff2") format("woff2"),
        url("./assets/fonts/woff/YekanBakh-SemiBold.woff") format("woff"),
        url("/bitbanks/assets/fonts/woff/YekanBakh-SemiBold.woff") format("woff"),
        url("/assets/fonts/woff/YekanBakh-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "YekanBakh";
    src: url("./assets/fonts/woff2/YekanBakh-Bold.woff2") format("woff2"),
        url("/bitbanks/assets/fonts/woff2/YekanBakh-Bold.woff2") format("woff2"),
        url("/assets/fonts/woff2/YekanBakh-Bold.woff2") format("woff2"),
        url("./assets/fonts/woff/YekanBakh-Bold.woff") format("woff"),
        url("/bitbanks/assets/fonts/woff/YekanBakh-Bold.woff") format("woff"),
        url("/assets/fonts/woff/YekanBakh-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "YekanBakh";
    src: url("./assets/fonts/woff2/YekanBakh-ExtraBold.woff2") format("woff2"),
        url("/bitbanks/assets/fonts/woff2/YekanBakh-ExtraBold.woff2") format("woff2"),
        url("/assets/fonts/woff2/YekanBakh-ExtraBold.woff2") format("woff2"),
        url("./assets/fonts/woff/YekanBakh-ExtraBold.woff") format("woff"),
        url("/bitbanks/assets/fonts/woff/YekanBakh-ExtraBold.woff") format("woff"),
        url("/assets/fonts/woff/YekanBakh-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #18a982;
    --color-primary-dark: #e1a31d;
    --color-hero-start: #18a982;
    --color-hero-end: #ff9d00;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-text-primary: #111827;
    --color-text-muted: #6b7280;
    --color-bg-app: #f3f4f6;
    --color-surface: #ffffff;
}

body {
    font-family: "YekanBakh", sans-serif;
    background: var(--color-bg-app);
    color: var(--color-text-primary);
}

button,
input,
textarea,
select {
    font-family: "YekanBakh", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: var(--color-surface);
    border-left: 1px solid #ececec;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: -8px 0 20px rgba(17, 24, 39, 0.05);
}

.brand {
    display: flex;
    width: 100%;
    justify-content: center;
}

.brand-icon {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.brand-icon-project {
    min-height: 84px;
}

.brand-icon-project.is-empty {
    display: none;
}

.brand-icon img{
    width: auto;
    max-width: 100%;
    max-height: 96px;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto;
}

.brand-text {
    font-weight: 700;
    font-size: 20px;
    color: #1f2937;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    font-size: 1rem;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: #374151;
    transition: 0.2s ease;
}

.menu-item.active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 12px 24px rgba(169, 24, 31, 0.25);
}

.menu-item:hover:not(.active) {
    background: #fef2f2;
    color: var(--color-primary);
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.admin-title {
    font-size: 12px;
    color: #9ca3af;
}

.fotbot{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}
.admin-name {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
   margin-right: 20%;
}

.admin-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
}

.content {
    flex: 1;
    padding: 24px 28px 40px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.project-switcher {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-switcher-track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 18px 34px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.project-badge,
.project-switcher-more {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.project-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.42;
    filter: grayscale(1);
    transform: scale(0.82);
    transition: transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
}

.project-badge:hover {
    opacity: 0.8;
    filter: grayscale(0.35);
    transform: scale(0.92);
}

.project-badge.is-active,
.project-badge.is-compact {
    opacity: 1;
    filter: none;
}

.project-badge.is-active {
    transform: scale(1.18);
}

.project-badge.is-active:hover {
    transform: scale(1.18);
}

.project-badge.is-compact {
    transform: none;
}

.project-badge-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    box-shadow: none;
}

.project-badge.is-active .project-badge-logo {
    border: none;
    background: transparent;
    box-shadow: none;
}

.project-badge.is-compact .project-badge-logo {
    width: 56px;
    height: 56px;
}

.project-badge-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-badge-fallback {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    background: transparent;
}

.project-switcher-more {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.95);
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.project-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    backdrop-filter: blur(8px);
}

.project-picker-backdrop[hidden] {
    display: none !important;
}

.project-picker-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: min(82vh, 860px);
    overflow: auto;
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.24);
}

.project-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.project-picker-head h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.project-picker-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #fff1f2;
    color: #be123c;
    font-size: 24px;
    cursor: pointer;
}

.project-picker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.project-picker-empty {
    grid-column: 1 / -1;
    border-radius: 20px;
    padding: 22px;
    background: #fff;
    border: 1px dashed rgba(203, 213, 225, 0.95);
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.project-picker-card {
    border-radius: 24px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.project-picker-card.is-active {
    border-color: rgba(34, 197, 94, 0.75);
    box-shadow: 0 18px 36px rgba(34, 197, 94, 0.12);
}

.project-picker-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.project-picker-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.project-picker-domain {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.88rem;
    word-break: break-word;
}

.project-picker-activate {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(239, 68, 68, 0.18);
}

.project-picker-activate.is-active {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 16px 28px rgba(34, 197, 94, 0.18);
    cursor: default;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.status-pill {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #d1fae5;
    padding: 8px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
}

.panel-title {
    color: var(--color-text-muted);
    font-weight: 700;
}

.header-project-button {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-hero-end));
    color: #fff;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(24, 169, 130, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-project-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(24, 169, 130, 0.34);
    filter: saturate(1.05);
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.hamburger span {
    width: 18px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 5;
}

.hero {
    background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-end));
    color: #fff;
    border-radius: 22px;
    padding: 28px 36px;
    box-shadow: 0 18px 40px rgba(146, 19, 24, 0.35);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--color-surface);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.06);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon desc";
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    direction: ltr;
    min-height: 140px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.card h3 {
    grid-area: title;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: -5%;
    direction: rtl;
    text-align: right;
}

.card p {
    grid-area: desc;
    color: var(--color-text-muted);
    font-size: 1rem;
    opacity: 0.5;
    margin-top: -5%;
    direction: rtl;
    text-align: right;
}

.card-icon {
    grid-area: icon;
    width: 156px;
    height: 156px;
    border-radius: 12px;
    background: #eef2ff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fordid-image {
    border-radius: 16px;
    filter: none;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--fordid-shadow, var(--color-primary)) 26%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .fordid-image {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px color-mix(in srgb, var(--fordid-shadow, var(--color-primary)) 32%, transparent);
}

.card-icon.mint { background: #eafbf1; }
.card-icon.sky { background: transparent; }
.card-icon.peach { background: #fff2e6; }
.card-icon.lilac { background: transparent; }

.dashboard {
    display: block;
}

.dashboard.hidden {
    display: none;
}

.task-view {
    display: none;
  
}

.task-view.active {
    display: block;
}

.task-card {
    position: relative;
    background: var(--color-surface);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    
}
.task-card-onebyone-card{

}

.task-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.task-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 18px;
    font-size: 14px;
}

.task-label {
   
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #374151;
}

#taskSourceText {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
}

#taskSourceText:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(169, 24, 31, 0.12);
}

.task-textarea {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    min-height: 180px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    font-family: "YekanBakh", sans-serif;
    line-height: 1.8;
}

.task-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(169, 24, 31, 0.12);
}

.task-results-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.task-result-card {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.task-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.task-result-title {
    min-width: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.task-result-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(169, 24, 31, 0.1);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
}

.task-result-meta {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-result-output {
    width: 100%;
    min-height: 160px;
    resize: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.8;
    color: #0f172a;
    background: rgba(248, 250, 252, 0.95);
}

.task-result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.task-result-actions .btn-primary,
.task-result-actions .chat-inline-primary {
    width: 100%;
    min-width: 0;
    margin-right: 0;
    padding: 10px 12px;
    font-size: 13px;
}

.onebyone-type-switcher {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.onebyone-type-btn {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.onebyone-type-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(169, 24, 31, 0.18);
}

.onebyone-model-toolbar {
    margin-top: 4px;
}

.task-result-image-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid #e5e7eb;
}

.task-result-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    cursor: zoom-in;
}

.onebyone-card {
    width: 100%;
}

.onebyone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.single-image-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #eceff1;
    border-radius: 14px;
    padding: 14px;
    background: #f9f9f9;
    min-width: 0;
}

.single-image-card h3 {
    position: relative;
    font-size: 16px;
    font-weight: 800;
}

.single-image-card .task-textarea {
    width: 100%;
    min-height: 150px;
}

.single-result {
    display: none;
    margin-top: 10px;
    border: 1px solid #eceff1;
    border-radius: 12px;
    padding: 10px;
    background: #fafafa;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
}
.hero-text h1{
    font-size: 2.2rem;
    font-family: "YekanBakh", sans-serif;
    margin-bottom: 0%;
}
.hero-text p{
    font-size: 1.4rem;
    font-family: "YekanBakh", sans-serif;
    font-weight: 300;
    margin-top: 0%;

}
.single-result.show {
    display: flex;
    flex-direction: column;
}

.onebyone-results-panel {
    margin-top: 16px;
}

.onebyone-results-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.single-result-type {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--color-primary);
    border-radius: 999px;
    padding: 6px 10px;
    white-space: nowrap;
}

.single-result-text {
    font-size: 13px;
    line-height: 1.8;
    color: #1f2937;
    white-space: pre-wrap;
    flex: 1;
}

.single-result-media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
}

.single-result-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.single-result-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.download-btn {
    border: none;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.download-btn:hover {
    background: #0f172a;
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000000;
    padding: 24px;
}

.image-lightbox.show {
    display: flex;
}

.image-lightbox img {
    max-width: min(96vw, 1600px);
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    background: #0f172a;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-download {
    position: absolute;
    top: 16px;
    left: 16px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.lightbox-download:hover {
    background: rgba(255, 255, 255, 0.28);
}

.agent-error-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
    background: rgba(15, 23, 42, 0.16);
    z-index: 10000002;
}

.agent-error-popup[hidden] {
    display: none !important;
}

.agent-error-popup-card {
    width: min(520px, calc(100vw - 32px));
    padding: 18px 20px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(248, 113, 113, 0.28);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
    position: relative;
}

.agent-error-popup-title {
    font-size: 16px;
    font-weight: 900;
    color: #991b1b;
    margin-bottom: 8px;
}

.agent-error-popup-body {
    font-size: 14px;
    line-height: 1.9;
    color: #334155;
    white-space: pre-wrap;
}

.agent-error-popup-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 22px;
    cursor: pointer;
}

.pwa-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
}

.pwa-install-backdrop[hidden] {
    display: none !important;
}

.pwa-install-card {
    width: min(420px, 100%);
    border-radius: 24px;
    padding: 24px;
    background:
      radial-gradient(circle at top right, rgba(24, 169, 130, 0.16), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.pwa-install-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(24, 169, 130, 0.12);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
}

.pwa-install-card h3 {
    margin: 14px 0 8px;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.pwa-install-copy {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.9;
}

.pwa-install-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.pwa-install-dismiss {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.task-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.task-status.error {
    color: #b91c1c;
}

.workflow-model-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.workflow-model-picker {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.workflow-model-label {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    padding: 0 2px;
}

.workflow-model-search {
    min-height: 44px;
    border-radius: 14px;
    margin: 0;
}

.workflow-model-select {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    font-weight: 800;
}

.workflow-model-status {
    grid-column: 1 / -1;
    min-height: 20px;
    font-size: 12px;
    color: #64748b;
    padding: 0 4px;
}

.chat-ai-shell {
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    background:
      radial-gradient(circle at top right, rgba(169, 24, 31, 0.08), transparent 22%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.chat-settings-launch {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.chat-settings-icon {
    font-size: 20px;
    line-height: 1;
}

.chat-ai-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-left: 62px;
}

.chat-ai-header-copy {
    max-width: 720px;
}

.chat-ai-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chat-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.chat-badge-live {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.chat-badge-muted {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.chat-thread {
    flex: 1;
    min-height: 48vh;
    max-height: calc(100vh - 420px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.chat-empty-state {
    margin: auto;
    text-align: center;
    color: #64748b;
}

.chat-empty-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
}

.chat-empty-copy {
    font-size: 14px;
    line-height: 1.9;
}

.chat-message {
    max-width: min(78%, 760px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.chat-message-user {
    align-self: flex-start;
    background: linear-gradient(135deg, #991b1b, #7f1d1d);
    color: #fff;
    border-bottom-right-radius: 8px;
}

.chat-message-assistant {
    align-self: flex-end;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom-left-radius: 8px;
}

.chat-message-role {
    font-size: 11px;
    font-weight: 900;
    opacity: 0.8;
}

.chat-message-body {
    white-space: pre-wrap;
    line-height: 2;
    font-size: 14px;
}

.chat-message-media {
    display: grid;
    gap: 10px;
}

.chat-message-image-card {
    width: 100%;
}

.chat-message-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f8fafc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    cursor: zoom-in;
    object-fit: contain;
}

.chat-composer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-model-picker {
    display: grid;
    gap: 8px;
    min-width: 280px;
    flex: 1;
}

.chat-model-search {
    min-height: 44px;
    border-radius: 14px;
}

.chat-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-secondary-btn,
.chat-model-select,
.chat-input {
    min-height: 46px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-family: "YekanBakh", sans-serif;
    font-size: 14px;
}

.chat-secondary-btn {
    min-width: 168px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 800;
}

.chat-model-select {
    min-width: 280px;
    padding: 0 14px;
    outline: none;
}

.chat-model-select:focus,
.chat-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(169, 24, 31, 0.12);
}

.chat-prompt-form {
    display: grid;
    gap: 12px;
}

.chat-prompt-input {
    min-height: 120px;
    margin-bottom: 0;
}

.chat-send-btn {
    width: 180px;
    margin-right: auto;
}

.chat-inline-primary {
    width: auto;
    min-width: 160px;
}

.chat-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000001;
}

.chat-modal-backdrop[hidden] {
    display: none !important;
}

.chat-modal-panel {
    width: min(640px, 100%);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
    overflow: hidden;
}

.chat-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 14px;
    border-bottom: 1px solid #edf2f7;
}

.chat-modal-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.chat-modal-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 24px;
    cursor: pointer;
}

.chat-modal-body {
    display: grid;
    gap: 10px;
    padding: 20px 24px 12px;
}

.chat-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 24px 24px;
}

.chat-input {
    width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
    outline: none;
}

.chat-system-textarea {
    min-height: 220px;
    margin-bottom: 0;
}

.project-modal-panel {
    width: min(780px, 100%);
    max-height: 98vh;
    overflow-y: auto;
}

.project-form-grid {
    display: grid;
    gap: 10px;
}

.project-colors-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.project-color-field {
    display: grid;
    gap: 8px;
}

.project-color-input {
    width: 100%;
    height: 54px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
    cursor: pointer;
}

.project-file-input {
    padding-top: 10px;
    padding-bottom: 10px;
}

.project-logo-preview {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 1px solid #dbe3ea;
    background: linear-gradient(180deg, #fff, #f8fafc);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.project-logo-preview[hidden] {
    display: none !important;
}

.project-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-prompt-input {
    min-height: 46px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-modal-actions {
    padding: 0;
    margin-top: 4px;
    justify-content: flex-start;
}

.project-settings-shell {
    display: grid;
    gap: 18px;
    background:
      radial-gradient(circle at top right, rgba(24, 169, 130, 0.08), transparent 26%),
      radial-gradient(circle at top left, rgba(255, 157, 0, 0.08), transparent 22%);
}

.project-settings-list {
    display: grid;
    gap: 22px;
}

.project-settings-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.98));
    box-shadow:
      0 18px 48px rgba(15, 23, 42, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.project-settings-card-head {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(238, 242, 247, 0.9);
    background:
      linear-gradient(135deg, rgba(24, 169, 130, 0.14), rgba(255, 157, 0, 0.14)),
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 42%);
}

.project-settings-card-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.project-settings-card-title span {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.project-settings-palette {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.project-settings-palette-swatch {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.project-settings-card-body {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.project-settings-group {
    display: grid;
    gap: 12px;
}

.project-settings-group-prompts {
    margin-top: 4px;
}

.project-settings-group-title {
    font-size: 13px;
    font-weight: 900;
    color: #475569;
    padding: 0 8px;
}

.project-setting-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.project-setting-content {
    min-width: 0;
}

.project-setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 8px;
}

.project-setting-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(24, 169, 130, 0.1);
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
}

.project-setting-value {
    font-size: 14px;
    line-height: 1.8;
    color: #0f172a;
    min-width: 0;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.project-setting-prompt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-setting-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.project-edit-btn,
.project-agent-btn,
.project-activate-btn {
    border: 1px solid rgba(209, 219, 229, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    min-height: 40px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-edit-btn:hover,
.project-agent-btn:hover,
.project-activate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(24, 169, 130, 0.34);
}

.project-edit-btn {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 16px;
}

.project-agent-btn {
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(24, 169, 130, 0.08), rgba(255, 157, 0, 0.08));
}

.project-activate-btn {
    min-width: 120px;
    padding: 0 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(24, 169, 130, 0.1));
}

.project-activate-btn.is-active {
    background: linear-gradient(135deg, var(--color-primary), #0ea5a4);
    color: #fff;
    border-color: transparent;
    cursor: default;
    box-shadow: 0 14px 28px rgba(24, 169, 130, 0.22);
}

.project-settings-logo-image {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

.project-settings-empty {
    color: #94a3b8;
}

.project-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22);
    flex: 0 0 auto;
}

body.chat-modal-open {
    overflow: hidden;
}

.progress {
    margin-top: 14px;
    display: none;
    gap: 8px;
}

.progress.show {
    display: grid;
}

.progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.progress-label {
    font-weight: 700;
}

.progress-value {
    font-weight: 800;
    color: var(--color-text-primary);
}

.progress-bar {
    height: 10px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), #c3272f);
    transition: width 0.25s ease;
}

.ready-prompts {
    margin-top: 18px;
    background: var(--color-surface);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.ready-prompts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ready-prompts-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.ready-prompts-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ready-prompts-note {
    display: flex;
    font-size: 12px;
    color: #9ca3af;
   
}

.ready-prompts-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.prompt-card {
    border: 1px solid #eceff1;
    border-radius: 12px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
}

.prompt-card.image-card {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.prompt-card.image-card .prompt-text {
    max-height: none;
    overflow: visible;
}

.prompt-card.image-card .prompt-actions {
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
}

.prompt-media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.prompt-image {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.prompt-card-title {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    background: var(--color-primary);
    padding: 6px 10px;
    border-radius: 8px;
    height: 100%;
}

.prompt-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 40px;
    overflow: hidden;
}

.prompt-actions {
    display: flex;
    direction: ltr;
    justify-content: flex-start;
}

.copy-btn {
    border: none;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-btn:hover {
    background: #0f172a;
}

.ready-prompts-status {
    margin-top: 10px;
    font-size: 12px;
    color: #9ca3af;
}

.ready-prompts-status.error {
    color: #b91c1c;
}



.prosescontainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    min-height: 40vh;
    max-height: 90vh;
    padding: 2% 2%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    border-radius: 24px;
    overflow: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 24px 60px rgba(17, 24, 39, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99999;
   

    
}

.prosescontainer > * {
    position: relative;
    z-index: 1;
}

.prosescontainer.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.prosescontainer .waiting,
.prosescontainer .done {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 100%;
    overflow: auto;
}

.prosescontainer .done {
    display: none;
}

.prosescontainer.done .waiting {
    display: none;
}

.prosescontainer.done .done {
    display: flex;
}

.lottie-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.lottie-stack dotlottie-player {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.prosescontainer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.22), transparent 40%);
}

.prosestext {
    margin: 0;
    font-family: "YekanBakh";
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
}


.refresher{
    width: 32px;
    height: 32px;
    background-color: orange;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: stretch;
    justify-content: stretch;
    flex: 0 0 32px;
    transition: background-color 0.2s ease;
}

.refresher > img,
.refresher > button > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.refresher > button{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    transition: background-color 0.2s ease;
}

.refresh-button{
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    outline: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.refresh-button img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.refresh-button:hover{
    transform: scale(1.08);
    opacity: 0.82;
}
.refresher.is-fresh{
    background-color: var(--color-success);
}

.refresher.is-stale{
    background-color: var(--color-warning);

}

.refresh-button.is-fresh{
    background-color: var(--color-success);
}

.refresh-button.is-stale{
    background-color: var(--color-warning);
}

#loadingLottie,
#textToImageLoadingLottie {
    width: min(320px, 70vw);
    height: auto;
    max-height: 55%;
}

#oneByOneLoadingLottie {
    width: min(320px, 70vw);
    height: auto;
    max-height: 55%;
}

.prosesdone {
    display: none;
    color: #c51621;
    font-size: 2.2rem;
    font-weight: 900;
}

.next-task-btn {
    display: none;
    border: none;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 18px;
    font-weight: 700;
    font-family: "YekanBakh";
    cursor: pointer;
}

.next-task-btn:hover {
    background: var(--color-primary-dark);
}

.prosescontainer.done .prosesdone,
.prosescontainer.done .next-task-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.formtaki{
     position: relative;
     width: 98%;
     max-width: 100%;
     min-width: 0;
}
.ppbar{
    display: none;
    width: min(520px, 80vw);
    height: 14px;
 
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
    background-color: #c7c7c7;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    position: relative;
    z-index: 5;
}

.prosescontainer.active:not(.done) .ppbar {
    display: block;
}


.ppbarin{
width: 0%;
height: 100%;
background:var(--color-primary);
border-radius: inherit;
}

.prosescontainer dotlottie-player {
    position: relative;
    z-index: 1;

}

.theteztinpross{

    font-size: 1.5rem;
    font-weight: 700;
}
.allimgbutton{
     position: fixed;
     width: 78px;
     height: 78px;
     left: 24px;
     bottom: 24px;
     border-radius: 22px;
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.86));
     border: 1px solid rgba(255, 255, 255, 0.55);
     box-shadow:
         0 18px 40px rgba(15, 23, 42, 0.22),
         inset 0 1px 0 rgba(255, 255, 255, 0.6),
         inset 0 -1px 0 rgba(255, 255, 255, 0.2);
     backdrop-filter: blur(14px) saturate(150%);
     -webkit-backdrop-filter: blur(14px) saturate(150%);
     z-index: 9999999;
     cursor: pointer;
     display: grid;
     place-items: center;
     color: #0f172a;
     font-size: 13px;
     font-weight: 700;
     letter-spacing: 0.2px;
     transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.allimgbutton::before{
     content: "";
     width: 48px;
     height: 48px;
     display: block;
     background: url("./assets/gallery.svg") center / contain no-repeat;
     filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.25));
}

.allimgbutton:hover{
     transform: translateY(-2px);
     box-shadow:
         0 24px 48px rgba(15, 23, 42, 0.26),
         inset 0 1px 0 rgba(255, 255, 255, 0.75),
         inset 0 -1px 0 rgba(255, 255, 255, 0.25);
     filter: brightness(1.02);
}

.allimgbutton:active{
     transform: translateY(0);
     filter: brightness(0.98);
}

.allimgsection{
     position: fixed;
     width: min(1100px, 92vw);
     height: min(720px, 86vh);
     left: 50%;
     bottom: 72px;
     transform: translateX(-50%);
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.9));
     border: 1px solid rgba(255, 255, 255, 0.55);
     border-radius: 28px;
     box-shadow:
         0 30px 70px rgba(15, 23, 42, 0.22),
         0 12px 26px rgba(15, 23, 42, 0.12),
         inset 0 1px 0 rgba(255, 255, 255, 0.6),
         inset 0 -1px 0 rgba(255, 255, 255, 0.2);
     z-index: 9999999;
     overflow: hidden;
     backdrop-filter: blur(18px) saturate(150%);
     -webkit-backdrop-filter: blur(18px) saturate(150%);
}
}
