

body {
	font-family: dana  !important;
	direction: rtl;

}
h1, h2, h3, h4, h5, h6,input, textarea {
	font-family: dana !important;
}
/* متغیرهای رنگی مطابق با تم سایت */
:root {
    --primary-color: #6B3E87;
    --primary-gradient: linear-gradient(135deg, #6B3E87 0%, #8B4F9F 100%);
    --secondary-color: #8B4F9F;
    --accent-color: #A855F7;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
}

/* تنظیمات کلی */
.alp-admin,
.alp-form-container {
    font-family: dana;
    direction: rtl;
    text-align: right;
}

/* بخش ادمین */
.alp-admin {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.alp-admin h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

.alp-admin .button-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(107, 62, 135, 0.3);
    transition: all 0.3s ease;
}

.alp-admin .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 62, 135, 0.4);
}

.alp-admin .wp-list-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.alp-admin .wp-list-table th {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    font-weight: bold;
}

.alp-admin .wp-list-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.alp-admin .wp-list-table tr:hover {
    background: rgba(107, 62, 135, 0.05);
}

/* فرم ادیتور */
.alp-admin .form-table th {
    color: var(--primary-color);
    font-weight: bold;
    padding: 20px 10px 20px 0;
    width: 200px;
}

.alp-admin .form-table td {
    padding: 20px 0;
}

.alp-admin .regular-text,
.alp-admin input[type="text"],
.alp-admin input[type="number"],
.alp-admin input[type="url"],
.alp-admin select,
.alp-admin textarea {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.alp-admin .regular-text:focus,
.alp-admin input[type="text"]:focus,
.alp-admin input[type="number"]:focus,
.alp-admin input[type="url"]:focus,
.alp-admin select:focus,
.alp-admin textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 62, 135, 0.1);
    outline: none;
}

/* قسمت مبالغ پرداخت */
.payment-amount-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.payment-amount-row input {
    flex: 1;
}

.remove-payment {
    background: var(--error-color) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer;
}

#add_payment_amount {
    background: var(--success-color) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    margin-top: 10px;
}

/* قسمت فایل‌ها */
.file-upload-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: rgba(107, 62, 135, 0.02);
}

.file-upload-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.upload-file {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    cursor: pointer;
}

.selected-files {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.file-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.file-item img,
.file-item video {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.remove-file {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--error-color) !important;
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer;
}

/* تنظیمات ایونت */
#event_settings {
    background: rgba(107, 62, 135, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

#event_settings label {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

/* صفحه نمایش فرم در فرانت */
.alp-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.alp-form-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.alp-form-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.alp-form-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.alp-form-description {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-right: 4px solid var(--primary-color);
}

.alp-form-description h2,
.alp-form-description h3,
.alp-form-description h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* قسمت فایل‌ها در فرانت */
.alp-form-files {
    margin: 30px 0;
}

.alp-form-files h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.alp-posters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.alp-poster {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.alp-poster:hover {
    transform: scale(1.05);
}

.alp-files-list {
    list-style: none;
    padding: 0;
}

.alp-files-list li {
    margin-bottom: 12px;
}

.alp-file-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.alp-file-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.alp-file-icon {
    margin-left: 12px;
    font-size: 20px;
}

.alp-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* فیلدهای فرم */
.alp-form-fields {
    margin: 30px 0;
}

.alp-field-group {
    margin-bottom: 25px;
}

.alp-field-label {
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.alp-field-input,
.alp-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.alp-field-input:focus,
.alp-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(107, 62, 135, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.alp-textarea {
    resize: vertical;
    min-height: 120px;
}

/* قسمت پرداخت */
.alp-payment-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(107, 62, 135, 0.05) 0%, rgba(139, 79, 159, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(107, 62, 135, 0.2);
}

.alp-payment-section h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.alp-payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.alp-payment-option {
    cursor: pointer;
    display: block;
}

.alp-payment-option input[type="radio"] {
    display: none;
}

.alp-payment-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alp-payment-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.alp-payment-card > * {
    position: relative;
    z-index: 2;
}

.alp-payment-option:hover .alp-payment-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(107, 62, 135, 0.2);
}

.alp-payment-option input[type="radio"]:checked + .alp-payment-card {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.alp-payment-option input[type="radio"]:checked + .alp-payment-card:before {
    opacity: 1;
}

.alp-payment-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.alp-payment-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}

.alp-payment-option input[type="radio"]:checked + .alp-payment-card .alp-payment-amount {
    color: white;
}

/* دکمه ارسال */
.alp-form-submit {
    text-align: center;
    margin-top: 40px;
}

.alp-submit-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(107, 62, 135, 0.3);
    position: relative;
    overflow: hidden;
}

.alp-submit-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(50%, -50%);
    transition: all 0.6s ease;
}

.alp-submit-btn:hover:before {
    width: 300px;
    height: 300px;
}

.alp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 62, 135, 0.4);
}

.alp-submit-btn:active {
    transform: translateY(0);
}

/* پیام‌های وضعیت */
.alp-success {
    border-right: 6px solid var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.alp-success h2 {
    color: var(--success-color);
}

.alp-error {
    border-right: 6px solid var(--error-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.1) 100%);
}

.alp-error h2 {
    color: var(--error-color);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .alp-form-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .alp-form-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .alp-form-title {
        font-size: 24px;
    }
    
    .alp-payment-options {
        grid-template-columns: 1fr;
    }
    
    .alp-posters-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-amount-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-amount-row input {
        width: 100%;
    }
    
    .selected-files {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .alp-form-card {
        padding: 20px;
    }
    
    .alp-submit-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .alp-field-input,
    .alp-textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* انیمیشن‌های ظریف */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alp-form-card {
    animation: fadeInUp 0.6s ease-out;
}

.alp-field-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.alp-field-group:nth-child(1) { animation-delay: 0.1s; }
.alp-field-group:nth-child(2) { animation-delay: 0.2s; }
.alp-field-group:nth-child(3) { animation-delay: 0.3s; }
.alp-field-group:nth-child(4) { animation-delay: 0.4s; }
.alp-field-group:nth-child(5) { animation-delay: 0.5s; }
.alp-field-group:nth-child(6) { animation-delay: 0.6s; }

/* اسکرول بار سفارشی */
.alp-form-container::-webkit-scrollbar {
    width: 8px;
}

.alp-form-container::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.alp-form-container::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

.alp-form-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* مودال حذف فرم */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-actions .button {
    padding: 12px 25px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .button-primary {
    background: #dc2626;
    color: white;
}

.modal-actions .button-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* دکمه‌های صادرات */
.alp-actions-bar {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.alp-actions-bar .button {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.alp-actions-bar .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alp-actions-bar select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 180px;
}

.alp-actions-bar select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 62, 135, 0.1);
}

/* آمار سریع */
.alp-stats-summary {
    background: linear-gradient(135deg, rgba(107, 62, 135, 0.02) 0%, rgba(139, 79, 159, 0.02) 100%);
    border: 1px solid rgba(107, 62, 135, 0.1);
}

.alp-stats-summary .stat-item {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.alp-stats-summary .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 62, 135, 0.1);
}

.alp-stats-summary .stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.alp-stats-summary .stat-item div {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* جدول بهبود یافته */
#submissions-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#submissions-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 18px 12px;
}

#submissions-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

#submissions-table tbody tr {
    transition: background-color 0.2s ease;
}

#submissions-table tbody tr:hover {
    background: rgba(107, 62, 135, 0.03);
}

#submissions-table tbody tr:nth-child(even) {
    background: #fafafa;
}

#submissions-table tbody tr:nth-child(even):hover {
    background: rgba(107, 62, 135, 0.05);
}

/* سلول اطلاعات کاربر */
.user-data-cell {
    max-width: 250px;
}

.user-data-cell div {
    margin-bottom: 8px;
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 13px;
    border-right: 3px solid var(--primary-color);
}

.user-data-cell div:last-child {
    margin-bottom: 0;
}

/* لودینگ برای دکمه‌های صادرات */
.button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* نمایش لیست فرم‌ها بهبود یافته */
.submission-stats {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

.delete-form-btn {
    background: #fecaca !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
}

.delete-form-btn:hover {
    background: #fca5a5 !important;
    color: white !important;
}

/* بهبود دسترسی */
.alp-field-input:focus,
.alp-textarea:focus,
.alp-submit-btn:focus {
    outline: 3px solid rgba(107, 62, 135, 0.3);
    outline-offset: 2px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .alp-actions-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .alp-stats-summary > div {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 20px;
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .button {
        width: 100%;
    }
    
    #submissions-table {
        font-size: 12px;
    }
    
    #submissions-table th,
    #submissions-table td {
        padding: 8px 6px;
    }
    
    .user-data-cell {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .alp-stats-summary > div {
        grid-template-columns: 1fr;
    }
    
    .alp-stats-summary .stat-item {
        padding: 15px 10px;
    }
    
    .alp-stats-summary .stat-item strong {
        font-size: 24px;
    }
}

/* انیمیشن برای عملیات موفق */
.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { background: #d4edda; }
    50% { background: #c3e6cb; }
    100% { background: #d4edda; }
}

/* پرینت */
@media print {
    .alp-actions-bar,
    .modal-content,
    .modal-backdrop,
    .delete-form-btn {
        display: none !important;
    }
    
    #submissions-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    #submissions-table th {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
}