/* ===== static/css/tariff-form.css ===== */
/* ===================================================== */
/* استایل پیغام‌ها */
/* ===================================================== */

.alert {
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 15px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-right: 4px solid #ffc107;
    color: #856404;
}

.alert-danger {
    background: linear-gradient(135deg, #fce4ec, #f8d7da);
    border-right: 4px solid #dc3545;
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9, #d4edda);
    border-right: 4px solid #28a745;
    color: #155724;
}

.alert ul {
    padding-right: 20px;
    margin-bottom: 0;
}

.alert ul li {
    list-style-type: none;
    padding: 4px 0;
}

.alert ul li .badge {
    font-size: 13px;
    padding: 4px 12px;
    margin-right: 5px;
}

.alert i {
    margin-left: 8px;
}

.alert .btn-close {
    font-size: 12px;
}

/* انیمیشن پیغام‌ها */
.alert {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== استایل پایه ===== */
.tariff-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8ecf1;
}

.tariff-header {
    border-right: 5px solid #f26273;
    padding-right: 20px;
    margin-bottom: 25px;
}

.tariff-header h2 {
    font: 20px iranyekan;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
}

.tariff-header p {
    font: 13px iranyekan;
    color: #7f8c8d;
}

/* ===== هر سطر ===== */
.tariff-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.tariff-row:last-child {
    margin-bottom: 0;
}

.tariff-row:hover {
    border-color: #f26273;
    box-shadow: 0 2px 12px rgba(242,98,115,0.08);
}

/* ===== عنوان سطر ===== */
.tariff-row-label {
    min-width: 140px;
    font: 16px iranyekan;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tariff-row-label .icon {
    font-size: 20px;
}

/* ===== محتوای سطر ===== */
.tariff-row-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== دکمه‌ها ===== */
.tariff-option-btn {
    padding: 8px 24px;
    border: 2px solid #dee2e6;
    background: white;
    font: 14px iranyekan;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
}

.tariff-option-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.tariff-option-btn.active {
    background: #f26273;
    color: white;
    border-color: #f26273;
    box-shadow: 0 3px 12px rgba(242,98,115,0.3);
}

/* ===== ورودی تعداد ===== */
.tariff-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    background: white;
}

.tariff-quantity-control button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tariff-quantity-control button:hover {
    background: #f26273;
    color: white;
}

.tariff-quantity-control input {
    width: 70px;
    height: 40px;
    border: none;
    border-left: 2px solid #dee2e6;
    border-right: 2px solid #dee2e6;
    text-align: center;
    font: 16px iranyekan;
    font-weight: 600;
    color: #2c3e50;
    background: white;
    outline: none;
}

.tariff-quantity-control input:focus {
    background: #fef9e7;
}

.tariff-qty-label {
    font: 14px iranyekan;
    color: #7f8c8d;
}

.tariff-qty-label strong {
    color: #2c3e50;
    font-weight: 700;
}

/* ===== آپلود فایل با Drag & Drop ===== */
.tariff-file-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.tariff-drop-zone {
    border: 3px dashed #dee2e6;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tariff-drop-zone:hover {
    border-color: #f26273;
    background: #fef9f7;
}

.tariff-drop-zone.dragover {
    border-color: #f26273;
    background: #fef0f2;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(242,98,115,0.2);
}

.tariff-drop-zone .icon-big {
    font-size: 48px;
    margin-bottom: 10px;
}

.tariff-drop-zone .drop-title {
    font: 16px iranyekan;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.tariff-drop-zone .drop-subtitle {
    font: 13px iranyekan;
    color: #7f8c8d;
}

.tariff-drop-zone .drop-subtitle strong {
    color: #f26273;
}

.tariff-drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tariff-drop-zone .file-preview {
    display: none;
    margin-top: 10px;
    padding: 10px 15px;
    background: #ebf5fb;
    border-radius: 8px;
    border-right: 4px solid #27ae60;
    width: 100%;
    text-align: right;
}

.tariff-drop-zone .file-preview.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tariff-drop-zone .file-preview .preview-name {
    font: 14px iranyekan;
    font-weight: 600;
    color: #2c3e50;
}

.tariff-drop-zone .file-preview .preview-size {
    font: 12px iranyekan;
    color: #7f8c8d;
    margin-right: 10px;
}

.tariff-drop-zone .file-preview .preview-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    font: 12px iranyekan;
    float: left;
    transition: all 0.3s ease;
}

.tariff-drop-zone .file-preview .preview-remove:hover {
    background: #c0392b;
}

.tariff-drop-zone .file-preview .preview-pages {
    font: 12px iranyekan;
    color: #27ae60;
    margin-right: 10px;
    display: inline-block;
    padding: 2px 10px;
    background: #e8f8f5;
    border-radius: 4px;
}

/* ===== اطلاعات فایل ===== */
.file-info {
    display: none;
    background: #ebf5fb;
    padding: 10px 15px;
    border-radius: 8px;
    border-right: 4px solid #f26273;
    width: 100%;
    margin-top: 5px;
}

.file-info.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.file-info .info-item {
    font: 13px iranyekan;
    color: #2c3e50;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-info .info-item .label {
    color: #7f8c8d;
    font-weight: 400;
    min-width: 100px;
}

.file-info .info-item .value {
    font-weight: 700;
    color: #f26273;
}

.file-info .info-item .value.green {
    color: #27ae60;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== دکمه ثبت ===== */
.tariff-submit-wrapper {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #dee2e6;
}

.tariff-submit-btn {
    background: #f26273;
    color: white;
    border: none;
    padding: 14px 50px;
    font: 18px iranyekan;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242,98,115,0.4);
}

.tariff-submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(242,98,115,0.5);
}

.tariff-submit-note {
    font: 12px iranyekan;
    color: #7f8c8d;
    margin-top: 10px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .tariff-form-wrapper {
        padding: 15px;
    }

    .tariff-row {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .tariff-row-label {
        min-width: unset;
        font-size: 15px;
        padding-bottom: 8px;
        border-bottom: 2px solid #dee2e6;
    }

    .tariff-row-content {
        justify-content: center;
    }

    .tariff-option-btn {
        padding: 8px 18px;
        font-size: 13px;
        min-width: 70px;
        flex: 1;
    }

    .tariff-quantity-control input {
        width: 60px;
        height: 36px;
        font-size: 14px;
    }

    .tariff-quantity-control button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .tariff-drop-zone {
        padding: 30px 15px;
        min-height: 120px;
    }

    .tariff-drop-zone .icon-big {
        font-size: 36px;
    }

    .tariff-drop-zone .drop-title {
        font-size: 14px;
    }

    .tariff-drop-zone .drop-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .tariff-form-wrapper {
        padding: 10px;
    }

    .tariff-row {
        padding: 12px;
    }

    .tariff-row-label {
        font-size: 13px;
    }

    .tariff-option-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 60px;
    }

    .tariff-quantity-control input {
        width: 50px;
        height: 32px;
        font-size: 13px;
    }

    .tariff-quantity-control button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .tariff-submit-btn {
        padding: 10px 30px;
        font-size: 15px;
    }

    .tariff-drop-zone {
        padding: 20px 10px;
        min-height: 100px;
    }

    .tariff-drop-zone .icon-big {
        font-size: 28px;
    }

    .tariff-drop-zone .drop-title {
        font-size: 13px;
    }

    .tariff-drop-zone .drop-subtitle {
        font-size: 11px;
    }

    .file-info .info-item {
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .file-info .info-item .label {
        min-width: unset;
    }

}