/* استایل‌های عمومی */
.arbaeein-types-container,
.arbaeein-details-container,
.arbaeein-list-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
}

.arbaeein-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.arbaeein-header h1 {
    color: #2c5f2d;
    font-size: 28px;
    margin: 0;
}

.arbaeein-header p {
    color: #666;
    margin: 5px 0 0 0;
}

/* دکمه‌ها */
.btn-primary,
.btn-secondary,
.btn-view {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #2c5f2d;
    color: white;
}

.btn-primary:hover {
    background-color: #1e4620;
}

.btn-secondary {
    background-color: #666;
    color: white;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-view {
    background-color: #4CAF50;
    color: white;
}

.btn-view:hover {
    background-color: #45a049;
}

.btn-delete {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #da190b;
}

/* دسته‌بندی انواع اربعین */
.arbaeein-category-section {
    margin-bottom: 40px;
}

.category-title {
    color: #2c5f2d;
    font-size: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f7f0;
    border-right: 4px solid #2c5f2d;
}

/* گرید انواع اربعین */
.arbaeein-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.arbaeein-type-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.arbaeein-type-card:hover {
    border-color: #2c5f2d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.arbaeein-type-card h3 {
    color: #333;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.arbaeein-type-card .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-start-arbaeein {
    width: 100%;
    padding: 10px;
    background-color: #2c5f2d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-start-arbaeein:hover {
    background-color: #1e4620;
}

/* مودال */
.arbaeein-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.modal-content h2 {
    color: #2c5f2d;
    margin: 0 0 20px 0;
}

/* فرم‌ها */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Tahoma, Arial, sans-serif;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* جدول */
.daily-records-table {
    overflow-x: auto;
    margin-top: 20px;
}

.arbaeein-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.arbaeein-table th {
    background-color: #2c5f2d;
    color: white;
    padding: 12px;
    text-align: right;
    font-weight: bold;
}

.arbaeein-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: right;
}

.arbaeein-table tr:hover {
    background-color: #f5f5f5;
}

.arbaeein-table tr.completed {
    background-color: #e8f5e9;
}

/* آیکون‌های عملیات */
.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    margin: 0 2px;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* بج وضعیت */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-badge.completed {
    background-color: #4CAF50;
    color: white;
}

.status-badge.pending {
    background-color: #ff9800;
    color: white;
}

.status-badge.active {
    background-color: #2196F3;
    color: white;
}

/* آمار */
.stats-box {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #2c5f2d;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* نوار پیشرفت */
.progress-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2c5f2d 0%, #4CAF50 100%);
    transition: width 0.3s;
}

/* گرید لیست اربعین‌ها */
.arbaeein-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.arbaeein-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.arbaeein-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 20px;
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.card-header h3 {
    margin: 0;
    color: #2c5f2d;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

.card-body .description {
    color: #666;
    margin-bottom: 15px;
}

.dates {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.date-item {
    display: flex;
    justify-content: space-between;
}

.date-item .label {
    color: #666;
    font-weight: bold;
}

.date-item .value {
    color: #333;
}

.progress-section {
    margin-top: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f8f8;
    display: flex;
    gap: 10px;
    border-top: 2px solid #e0e0e0;
}

/* حالت خالی */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* جزئیات رکورد */
.record-details {
    padding: 20px 0;
}

.detail-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    display: block;
    color: #2c5f2d;
    margin-bottom: 8px;
}

.detail-item p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* یادداشت‌ها */
.has-notes {
    color: #2c5f2d;
    cursor: help;
}

.no-notes {
    color: #ccc;
}

/* استایل‌های مربوط به تاریخ */
.date-cell {
    position: relative;
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.date-text {
    flex: 1;
    font-weight: 500;
}

.date-text.empty {
    color: #999;
    font-style: italic;
    font-weight: normal;
}

.btn-date-picker {
    background: #2c5f2d;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-date-picker:hover {
    background: #1e4620;
    transform: scale(1.1);
}

.info-text {
    margin-top: 10px;
    padding: 12px;
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    border-radius: 5px;
    color: #856404;
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .arbaeein-types-grid,
    .arbaeein-grid {
        grid-template-columns: 1fr;
    }
    
    .arbaeein-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-box {
        width: 100%;
        justify-content: space-around;
    }
    
    .card-footer {
        flex-direction: column;
    }
    
    .card-footer .btn-view,
    .card-footer .btn-delete {
        width: 100%;
    }
}

/* اعلان‌ها */
.arbaeein-notice {
    padding: 15px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    color: #856404;
    text-align: center;
    margin: 20px 0;
}
