/* ===== FONT ===== */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Regular.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: bold;
}

/* ===== RESET ===== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Vazir',sans-serif;
background:#f8fafc;
color:#1e293b;
line-height:1.7;
}

/* ===== LAYOUT ===== */

.wrapper{
display:flex;
min-height:100vh;
}

/* ===== SIDEBAR ===== */

.sidebar{
width:220px;
background:#ffffff;
border-left:1px solid #e5e7eb;
padding:25px 0;
}

.sidebar-brand{
font-size:18px;
font-weight:bold;
text-align:center;
margin-bottom:30px;
}

.sidebar a{
display:block;
padding:12px 25px;
text-decoration:none;
color:#475569;
font-size:14px;
}

.sidebar a:hover{
background:#f1f5f9;
}

.sidebar a.active{
color:#2563eb;
font-weight:500;
}

/* ===== CONTENT ===== */

.content{
flex:1;
padding:30px;
}

/* ===== HEADER ===== */

.header{
margin-bottom:30px;
}

.page-title{
font-size:22px;
font-weight:bold;
}

.page-subtitle{
font-size:13px;
color:#64748b;
margin-top:5px;
}

/* ===== STATS ===== */

.stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
margin-bottom:30px;
}

.stat{
background:#ffffff;
border:1px solid #e5e7eb;
padding:20px;
border-radius:8px;
}

.stat-title{
font-size:12px;
color:#64748b;
margin-bottom:5px;
}

.stat-number{
font-size:22px;
font-weight:bold;
}

/* ===== CARD ===== */

.card{
background:#ffffff;
border:1px solid #e5e7eb;
border-radius:10px;
padding:20px;
margin-bottom:20px;
}

.card-title{
font-size:15px;
font-weight:bold;
margin-bottom:15px;
}

/* ===== INPUT ===== */

input{
width:100%;
padding:10px 12px;
border:1px solid #d1d5db;
border-radius:6px;
font-family:'Vazir';
font-size:14px;
}

input:focus{
outline:none;
border-color:#2563eb;
}

/* ===== RESULT ===== */

.search-result-item{
border:1px solid #e5e7eb;
border-radius:6px;
padding:12px;
margin-bottom:10px;
background:#fafafa;
}

.search-result-item:hover{
background:#ddebff;
cursor: pointer;
}

.result-header{
display:flex;
justify-content:space-between;
margin-bottom:8px;
}

.result-order-num{
font-weight:bold;
color:#2563eb;
}

.result-details{
font-size:13px;
color:#475569;
}

/* ===== BUTTON ===== */

.btn{
border:none;
padding:6px 12px;
font-size:13px;
border-radius:6px;
cursor:pointer;
font-family: 'Vazir';
}

.btn-primary{
    font-family: 'Vazir';
background:#2563eb;
color:white;
}
.btn-primary:hover{
background:#1553eb;
}
/* ===== INFO LIST ===== */

.info-row{
display:flex;
justify-content:space-between;
padding:10px ;
border-bottom:1px solid #f1f5f9;
border-radius:8px;
font-size:13px;
}
.info-row:hover{
   background:#f1f5f9; 
}

.info-label{
color:#64748b;
}

.info-value{
font-weight:500;
}

/* ===== FILE GRID ===== */

.file-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
gap:10px;
}

.file-card{
border:1px solid #e5e7eb;
border-radius:6px;
overflow:hidden;
}

.file-card:hover{
    border:1px solid #aaa;
    background:#fff; 
}

.file-preview{
width:100%;
height:120px;
object-fit:cover;
}

.file-link{
display:block;
text-align:center;
padding:8px;
background:#2563eb;
color:white;
font-size:12px;
text-decoration:none;
}
.file-link:hover{
    background:#1553eb;
}
/* ===== MOBILE ===== */

@media(max-width:768px){

.wrapper{
flex-direction:column;
}

.sidebar{
width:100%;
border-left:none;
border-bottom:1px solid #e5e7eb;
display:flex;
justify-content:center;
gap:20px;
}

.sidebar a{
padding:10px;
}

.content{
padding:20px;
}

}


/* ===== PRODUCTION REPORT TABLE ===== */

.production-report-card {
    grid-column: 2 / -1;
}

.production-table {
    width: 100%;
    background: white;
    font-size:13px;
}

.production-header {
    display: grid;
    grid-template-columns: 110px 1fr 140px;
    gap: 15px;
    padding: 1px 20px;
    border-radius: 8px 8px 0 0;

}

.production-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.production-row {
    display: grid;
    grid-template-columns: 110px 1fr 140px;
    align-items: center;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.production-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;

}

.col-label {
    display: flex;
    align-items: center;

}
.label-text{
       color: #64748b; 
    
}

.col-progress {
    display: flex;
    align-items: center;
}

.progress-bar-container {
    width: 100%;
    height: 32px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    transition: width 0.6s ease;
    min-width: 50px;
}

.progress-text {
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.col-numeric {
    display: flex;
    justify-content: center;
    align-items: center;
}

.numeric-badge {
    display: inline-block;

    border-radius: 6px;
    min-width: 60px;
    text-align: center;
}

/* Tablet Responsive */
@media(max-width: 1024px) {
    .production-header,
    .production-row {
        grid-template-columns: 110px 1fr 140px;
        gap: 10px;
    }
    

}

/* Mobile Responsive */
@media(max-width: 768px) {
    .production-header {
        display: none;
    }
    
    .production-row {
        grid-template-columns:70px 1fr 50px;
        gap: 10px;
        padding: 1px;
    }
    


    
    .col-progress {
        order: 2;
    }
    
    .col-numeric {
        order: 3;
        justify-content: flex-start;
        margin-top: 5px;
    }
    
    .numeric-badge {
        padding: 5px 14px;
    }
}

@media(max-width: 480px) {
    .production-body {
        padding: 0px;
    }
    
    .production-row {
        padding: 1px 10px;
    }
    
    .progress-bar-container {
        height: 20px;
    }
    
    .progress-text {
        font-size: 11px;
    }
}




/* ========================================
   استایل‌های داشبورد مدیر
======================================== */

/* آواتار مدیر */
.admin-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* گرید اطلاعات مدیر */
.admin-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* لیست اطلاعات */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.info-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
}

/* بج وضعیت */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.status-success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.status-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* کارت‌های دسترسی سریع */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.quick-action-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* تغییرات stat-change */
.stat-change.neutral {
    color: #6b7280;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .admin-info-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-label,
    .info-value {
        font-size: 0.8125rem;
    }
}
