/* فونت یکان */
@font-face {
    font-family: 'Yekan';
    src: url('../yekan-font/Yekan.eot');
    src: url('../yekan-font/Yekan.eot?#iefix') format('embedded-opentype'),
         url('../yekan-font/Yekan.woff') format('woff'),
         url('../yekan-font/Yekan.ttf') format('truetype'),
         url('../yekan-font/Yekan.svg#Yekan') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan';
    src: url('../yekan-font/yekan-regular.eot');
    src: url('../yekan-font/yekan-regular.eot?#iefix') format('embedded-opentype'),
         url('../yekan-font/yekan-regular.woff') format('woff'),
         url('../yekan-font/yekan-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Yekan', 'Tahoma', 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    padding: 20px;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0px 6px 7px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #808e9b 0%, #6c757d 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.nav-links {
    background: #f8f9fa;
    padding: 15px 30px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #dee2e6;
}

.nav-links a {
    padding: 10px 20px;
    background: white;
    color: #808e9b;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #808e9b;
    transition: all 0.3s;
    font-weight: bold;
}

.nav-links a:hover {
    background: #808e9b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 142, 155, 0.4);
}

.content {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
}

.form-group label .required {
    color: #e74c3c;
    margin-right: 3px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Yekan', 'Tahoma', Arial, sans-serif;
    transition: all 0.3s;
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.form-group input[type="file"]::-webkit-file-upload-button {
    background: #808e9b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #6c757d;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #808e9b;
    box-shadow: 0 0 0 3px rgba(128, 142, 155, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Yekan', 'Tahoma', Arial, sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #808e9b 0%, #6c757d 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(128, 142, 155, 0.4);
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* استایل جدول */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

table thead {
    background: linear-gradient(135deg, #808e9b 0%, #6c757d 100%);
    color: white;
}

table thead th {
    padding: 15px;
    text-align: right;
    font-weight: bold;
}

table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s;
}

table tbody tr:hover {
    background: #f8f9fa;
}

table tbody td {
    padding: 12px 15px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.export-btn {
    margin-bottom: 20px;
}

.btn-view-receipt {
    display: inline-block;
    padding: 5px 12px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-view-receipt:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .content {
        padding: 20px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    table {
        font-size: 12px;
    }
    
    table thead th,
    table tbody td {
        padding: 8px;
    }
}

