﻿:root {
    --primary-brown: #4d3227;
    --light-bg: #f9f5f0;
    --white: #ffffff;
    --text-muted: #8e7f78;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'IRANSans', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
    font-family: 'IRANSans';
    font-size: 14px;
    background: url('../images/backgroundcofe1.jpg') center center no-repeat;
    background-size: cover;

    background-color: #f5f5f5;
}

a {
    text-decoration: none;
}

ul {
    padding: 0;
    list-style-type: none;
    margin: 0;
}

.app-container {
    background-color: var(--light-bg);
    width: 100%;
    max-width: 400px;
    min-height: 90vh;
    border-radius: 40px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Header Styles */
.header {
    text-align: center;
}

.logo h1 {
    color: var(--primary-brown);
    font-size: 18px;
    margin-top: 10px;
}

.tagline {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary-brown);
    border-top: 1px solid var(--primary-brown);
    border-bottom: 1px solid var(--primary-brown);
    display: inline-block;
    padding: 2px 5px;
}

.welcome-text h2 {
    margin-top: 15px;
    font-size: 16px;
    color: var(--primary-brown);
}

.welcome-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.card-content {
    flex: 1;
}

    .card-content h3 {
        font-size: 17px;
        color: var(--primary-brown);
    }

    .card-content p {
        font-size: 12px;
        color: var(--text-muted);
        margin: 8px 0;
        line-height: 1.5;
    }

.arrow-btn {
    background: var(--primary-brown);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

.card-image {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inputs */
.input-group {
    display: flex;
    align-items: center;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

    .input-group input {
        border: none;
        outline: none;
        background: transparent;
        font-size: 12px;
        width: 100%;
        text-align: right;
    }

/* Separator */
.separator {
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Login Section */
.mobile-login {
    width: 100%;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.login-info span {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-brown);
}

.login-info small {
    font-size: 11px;
    color: var(--text-muted);
}

.main-order-btn {
    width: 100%;
    background: #ea4635;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.coffee-icon {
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brown);
}

.footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Placeholders for visuals */
.qr-placeholder, .table-placeholder {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    font-size: 12px;
    color: #999;
}

.qr-card {
    width: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #ebe5dd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    position: relative; 
}

.qr-card-content {
    display: flex;
    flex-direction: row-reverse; 
    justify-content: space-between;
    align-items: center;
}

.qr-text h3 {
    font-size: 17px;
    color: #593b29;
    font-weight: 700;
    margin-bottom: 6px;
}

.qr-text p {
    font-size: 13px;
    line-height: 1.7;
    color: #8e7d73;
}

.qr-image {
    width: 100px;
}

.arrow-btn {
    position: absolute;
    bottom: 18px;
    left: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #7a4a31;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(122,74,49,0.25);
    cursor: pointer;
}

    .arrow-btn span {
        transform: translateY(1px);
    }


.table-card {
    width: 100%;
    background: #fff;
    border-radius: 22px;
    padding: 10px 16px 55px 20px;
    border: 1px solid #ebe5dd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin: 15px 0;
    position: relative;
}

.table-card-content {
    display: flex;
    flex-direction: row-reverse; /* تصویر سمت راست */
    justify-content: space-between;
    align-items: center;
}

.table-text h3 {
    font-size: 17px;
    color: #593b29;
    font-weight: 700;
    margin-bottom: 6px;
}

.table-text p {
    font-size: 13px;
    color: #8e7d73;
    margin-bottom: 10px;
}

/* input box */

.table-input {
    display: flex;
    align-items: center;
    background: #f6f2ec;
    border-radius: 14px;
    padding: 10px 3px;
    width: 200px;
    border: 1px solid #e6dfd6;
}

    .table-input input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        flex: 1;
        color: #5a3b2a;
    }

        .table-input input::placeholder {
            color: #a39286;
        }

.grid-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #7a4a31;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    font-size: 12px;
}

/* image */

.table-image {
    width: 115px;
}

/* arrow button – پایین چپ */

.arrow-btn {
    position: absolute;
    bottom: 18px;
    left: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #7a4a31;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(122,74,49,0.25);
    cursor: pointer;
}
.logo img{
    width:50px;
}

.p30{
    padding:30px !important;
}



@media (min-width: 768px) {
    body {
        justify-content: center; /* یا flex-start برای چسبیده راست */
    }

    .app {
        width: 400px;
    }
}

#phoneModal.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1055 !important;
    width: 100% !important;
    height: 100% !important;
}

#phoneModal .modal-dialog {
    margin: 1.75rem auto !important;
    max-width: 400px;
}

#phoneModal .modal-content {
    border-radius: 16px;
}
.control-label{
    text-align:right;
}

.qr-card--profile {
    max-width: 420px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.qr-card__header {
    margin-bottom: 1.25rem;
    text-align: right;
}

.qr-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.qr-card__subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
}

.qr-field {
    margin-bottom: 1.1rem;
}

    .qr-field:last-child {
        margin-bottom: 0;
    }

.qr-field__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-align:right;
}

.qr-field__input-wrap {
    position: relative;
}

.qr-field__icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.qr-field__input {
    height: 46px;
    padding-right: 2.75rem;
    padding-left: 0.85rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

    .qr-field__input::placeholder {
        color: #94a3b8;
        opacity: 1;
    }

    .qr-field__input:focus {
        background: #fff;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        outline: none;
    }

.qr-status-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

/* رنگ قرمز برای بارکد نامعتبر */
.qr-status-icon--danger {
    color: #e53935;
    background: #ffebee;
}

/* رنگ نارنجی برای حالت بدون بارکد */
.qr-status-icon--warning {
    color: #ff8c00;
    background: #fff8ef;
}

.qr-status-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.qr-status-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    padding: 0 15px;
    margin-bottom: 16px;
}

.qr-status-action {
    font-size: 0.8rem;
    color: #888;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* افکت انیمیشن تپش ملایم برای آیکون QR Code */
.animate-pulse {
    animation: qrPulse 2s infinite ease-in-out;
}

@keyframes qrPulse {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }

    100% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}