* {
    margin: 0;
    padding: 0;
    font-family: 'vazir';
}
@font-face {
    font-family: 'vazir';
    src: url(../font/Vazir.ttf);
}
.head {
    background: #2d2d2d;
    color: white;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 25px;
    border-bottom: 7px solid #fecc00;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.151);
    font-weight: bold;
    height: 50px;
}
.p-title {
    font-size: 1.4vw;
}
.center-links .a-head{
    color: white;
    margin-left:1rem;
    text-decoration: none;
    transition: 0.5s;
}
.a-log {
    text-decoration: none;
    color: white;
}
.center-links .a-head:hover{
    opacity:0.8;
    color: #777;
}
.flex {
    display: flex;
    align-items: center;
}

.left-side {
    display: flex;
    align-items: center;
}
.logo-img {
    height: auto;
    width: 65px;
    margin-left: 10px;
}
.main {
    margin-top: 1vw;
   margin-left: 2vw;
   margin-right: 2vw;
}

.hero{
    color:#fff;
    text-align:center;
    padding:4rem 2rem;
}
.hero h2{
    font-size:2.5rem;
    margin-bottom:1rem;
}


/* --- محفظه مرکزی (container) ------------------- */
.container{
    max-width:1200px;
    margin:auto;
    padding:2rem;
    background:#fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.151);
}
h1, h2 {
    text-align: center;
    color: #555;
    margin-bottom: 1rem;
}








#result img {
  width: 30vw;
  height: 20vw;
  margin-top: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
}
.input-search {
    outline: none;
    padding: 10px;
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 3px;
}
.btn-search {
    background-color: #fecc00;
    color: #555;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin: 3px;
}
.btn-search:hover {
    opacity: 0.8;
}
.invoice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* فاصله بین ردیف‌ها */
    direction: rtl;
}

.invoice-table td {
    background: #ffffff;
}

.td-search {
    padding: 10px 14px;
    text-align: right;
    border-left: 8px solid transparent; /* فاصله از سمت چپ */
    white-space: nowrap;
    font-size: 14px;
    color: #333;
}

/* افکت hover */
.invoice-table .tr-search:hover .td-search {
    background: #f3f7ff;
}

/* تصویر */
.img-cell .img-search {
    max-width: 60px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.img-cell .img-search:hover {
    transform: scale(1.1);
}

#result {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* استایل برای فرم آپلود */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.151);
}
.user-wrapper {
    position: relative;
    display: inline-block;
}

.user-trigger {
    cursor: pointer;
    color: white;
    user-select: none;
    transition: 0.5s;
}
.user-trigger:hover {
    opacity: 0.8;
}


.user-trigger .arrow {
    font-size: 12px;
    margin-right: 4px;
}

.user-popup {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.user-popup a {
    display: block;
    padding: 6px 8px;
    text-decoration: none;
    color: #333;
}
.logout {
    background: red;
    color: white;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
    /* margin-right: 25px; */
    padding-left: 15px;
    padding-right: 15px;
}
.user-popup a:hover, .logout:hover {
    background: #f2f2f2;
    color: black;
    border-radius: 4px;
}

.user-popup hr {
    margin: 6px 0;
}
