@import url('/static/css/fonts.css');

:root {
    --main-yellow: #ffc107;
    --accent-blue: #47664a;
    --light-gray: #f8f9fa;
}

body {
    background-color: var(--light-gray);
    font-family: ahang4, sans-serif;
}

.alert {
    text-align: right !important;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--accent-blue) !important;
}

.nav-link {
    color: #444 !important;
    font-weight: 500;
    background-color: #fef8c9;
    margin: 2px;
    padding: 10px;
    border-radius: 5px;
    transition: 0.2s;
}

.nav-link:hover {
    background-color: #ffc107;
}

.intro-box {
    background: linear-gradient(145deg, #fffbd5, var(--main-yellow));
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    text-align: center;
    margin: 3rem auto 1.5rem auto;
}

.intro-box h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.intro-box p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.intro-box .btn-primary {
    background-color: var(--main-yellow);
    border: none;
    color: #000;
}

.intro-box .btn-outline-secondary {
    border-color: var(--main-yellow);
    color: #000;
}

.intro-box .btn-outline-secondary:hover {
    background-color: var(--main-yellow);
    color: #000;
}

.description-box {
    margin: 0 auto 2rem auto;
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    max-width: 700px;
}

.description-box p {
    font-size: 0.9rem !important;
    color: #444;
    line-height: 2.2rem;
}

.gallery {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img {
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
    width: 100%;
}

.gallery a:hover img {
    transform: scale(1.05);
}

.empty-receipt {
    text-align: center;
    background-color: #f3f5f7;
    padding: 15px;
    border-radius: 15px;
}

.receipt-image {
    width: 100%;
    margin: 20px auto 20px auto;
    border-radius: 25px;
}

.receipt-text {
    background: #ffedb9;
    margin: 0px auto 0px auto;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #ffc107;
}

.receipt-date {
    background: #ffedb9;
    margin: 5px auto 0px auto;
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #ffc107;
}

.receipt {
    box-shadow: 0px 10px 30px #e9ecef;
    border: 1px solid #e9ecef;
    margin: 40px auto;
    padding: 15px;
    border-radius: 15px;
}

.send-resid-btn {
    background-color: #846815;
    color: #fff;

}

.send-resid-btn:hover {
    background-color: #4a3a0a;
    color: #fff;
}

.nav-link-action {
    background-color: var(--main-yellow);
    ;
}

.arabic-text {
    font-family: neirizi;
    text-align: center
}

.tarjome-text {
    font-family: VazirFont;
    text-align: center;
}

.source-text {
    font-family: ahang2;
    text-align: left;
}

.red-text {
    color: #dc3545;
    font-size: 14pt;
}

.misaqname-box {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    text-align: center;
    margin: 3rem auto 1.5rem auto;
    border: 1px solid #dc3545;
}

.period-field {
    margin: 0px 10px;
}

.amount-field {
    height: 25px;
    text-align: center;
    border: none;
    border-bottom: 1px dashed #adb5bd;
    width: 100px;
}

.period-field {
    height: 25px;
    text-align: center;
    border: none;
    border-bottom: 1px dashed #adb5bd;
    width: 100px;
}

.amount-field::-webkit-outer-spin-button,
.amount-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.amount-field {
    -moz-appearance: textfield;
}

.li-list {
    margin: 0px !important;
}

.conduct-name {
    font-size: 16pt !important;
    margin-bottom: 10px;
}

.lined-text {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.dotted-underline {
    border-bottom: 1px dashed #dc3545;
    display: inline-block;
}

.conduct-submit {
    display: block;
    margin: 20px auto;
    background-color: #28a745;
    color: white;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.conduct-submit:hover {
    background-color: #218838;
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.5);
}

.conduct-div {
    text-align: justify;
}

.conduct-name {
    text-align: right;
}

.end-conduct {
    font-size: 11pt;
    font-family: ahang5
}

.approved-text {
    text-align: center;
    margin: 0px !important;
    font-size: 8pt;
    color: #0d6efd;
}

.logo-img {
    width: 200px;
}

.text-intro {
    margin: 6px auto;
    font-family: ahang2;
    text-align: center;
}

.red-text-bold {
    display: block;
    font-family: ahang3;
    margin: 10px auto;
}

.intro-text-intro {
    font-family: ahang4;
}


.bank-info {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    text-align: center !important;
    margin: 10px auto;
}

.label {
    color: #333;
}

.value {
    font-size: 18px;
    color: #222;
    direction: ltr;
    text-align: center;
}

.copy-btn {
    background-color: #3b82f6;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #2563eb;
}

.copied {
    color: green;
    font-size: 14px;
    margin-right: 10px;
    display: none;
}


#welcomeModal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.welcome-content {
    background-color: #fff9db;
    /* زرد روشن */
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
}

.welcome-logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.welcome-content h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
}

.welcome-button {
    background: linear-gradient(135deg, #10b981, #34d399);
    /* گرادینت سبز */
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.welcome-button:hover {
    transform: scale(1.05);
}

.description-box {
    max-width: 750px;
    margin: 60px auto;
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.4);
    color: #333;
    position: relative;
    overflow: hidden;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
    }

    100% {
        box-shadow: 0 0 50px rgba(255, 193, 7, 0.6);
    }
}

.intro-icon {
    text-align: center;
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.text-intro {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.pis-text {
    color: #c67f00;
    font-weight: bold;
}

.red-text {
    color: #d32f2f;
}

.red-text-bold {
    font-weight: bold;
}

.source-text {
    text-align: left;
    margin-top: 25px;
    font-size: 14px;
    color: #555;
}

.gallery-img {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s ease-out;
}

.gallery-img.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .intro-box h1 {
        font-size: 1.8rem;
        padding: 0px !important;

    }

    .intro-box p,
    .description-box p {
        font-size: 1rem;
        line-height: 1.9rem;
        padding: 0px !important;
        margin: 0px !important;
    }

    .intro-box {
        padding: 50px 5px;
        margin: 20px;
    }

    .misaqname-box {
        padding: 50px 5px !important;
        margin: 20px !important;
    }

    .description-box {
        margin: 20px;
    }

    .br-desc {
        display: block !important;
    }

    .logo-img {
        width: 120px;
    }

    .text-intro {
        font-size: 10pt;
    }

    .value {
        font-size: 10pt;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        width: 90%;
        padding: 20px;
    }

    .welcome-content h1 {
        font-size: 18px;
    }

    .welcome-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .welcome-logo {
        max-width: 90px;
    }
}



@media (max-width: 430px) {
    .value {
        font-size: 7pt;
    }

    .copy-btn {
        font-size: 8pt;
    }

    .bank-info {
        padding: 10px;
    }
}