@font-face {
    font-family: 'Iran';
    src: url('assets/fonts/iran.ttf') format('truetype');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Iran', 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.5;
}

.pr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 180px;
}

.pr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.pr-logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    color: #3390ec;
    text-decoration: none;
}

.pr-logo i {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #3390ec;
    border-radius: 50%;
    margin-right: 8px;
}

.pr-breadcrumb {
    display: flex;
    list-style: none;
}

.pr-breadcrumb-item {
    margin-left: 10px;
    color: #777;
}

.pr-breadcrumb-item:not(:last-child):after {
    content: "›";
    margin-left: 10px;
}

.pr-content {
    display: flex;
    gap: 40px;
}

.pr-form-column {
    flex: 1;
}

.pr-form-header {
    font-size: 22px;
    margin-bottom: 5px;
}

.pr-form-subheader {
    font-size: 14px;
    color: #777;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.pr-form-label-hint {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #777;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

.pr-form-control-wrap {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    max-width: 400px;
}

.form-control:focus {
    outline: none;
    border-color: #3390ec;
}

.pr-form-control-hint {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.pr-target-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.pr-target-tabs-prefix {
    padding: 10px 15px;
    font-weight: 500;
}

.pr-radio-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #3390ec;
}

.pr-radio-tab input {
    display: none;
    padding: 10px 15px;
}

.pr-radio-tab input:checked + .tab-label {
    background: #3390ec;
    color: #fff;
    border-radius: 20px;
}

.pr-radio-tab input:checked ~ .tab-label {
    border-bottom-color: #3390ec;
    padding: 1px 12px;

}

.tab-label {
    font-weight: 500;
}

.pr-target-options {
    display: none;
}

.pr-target-options.visible {
    display: block;
}

.pr-preview-ad-wrap {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pr-form-info-block {
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.pr-form-info-block.minus {
    color: #d32f2f;
}

.pr-form-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    padding: 8px 0;
}

.checkbox-input {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-left: 10px;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
}

.checkbox-input-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #3390ec;
    border-radius: 1px;
}

.checkbox-item input:checked + .checkbox-input {
    border-color: #3390ec;
    background-color: #3390ec;
}

.checkbox-item input:checked + .checkbox-input .checkbox-input-icon {
    display: block;
    background-color: #3390ec;
}

.checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-label {
    font-size: 14px;
    line-height: 1.4;
}

/* استایل‌های مخصوص موبایل برای چک‌باکس قوانین */
@media (max-width: 768px) {
    .pr-form-footer-column .checkbox-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        background-color: #f9f9f9;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .pr-form-footer-column .checkbox-input {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .pr-form-footer-column .checkbox-label {
        font-size: 13px;
        text-align: right;
        line-height: 1.5;
    }
    
    .pr-form-footer-column .checkbox-label a {
        display: inline;
        color: #3390ec;
        text-decoration: underline;
    }
    
    .pr-form-footer .pr-btn {
        width: 100%;
        margin-right: 0 !important;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* بهبود استایل برای چک‌باکس قوانین در دسکتاپ */
.pr-form-footer-column .checkbox-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.pr-form-footer-column .checkbox-label {
    flex: 1;
    margin-left: 10px;
}

.pr-form-footer-column .checkbox-label a {
    color: #3390ec;
    text-decoration: none;
}

.pr-form-footer-column .checkbox-label a:hover {
    text-decoration: underline;
}

.pr-btn {
    background-color: #3390ec;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.pr-btn:disabled {
    background-color: #a0c8f8;
    cursor: not-allowed;
}

.pr-radio-buttons {
    display: flex;
    gap: 10px;
}

.pr-radio-button {
    display: flex;
    align-items: center;
}

.pr-radio-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.pr-radio-button input:checked + .pr-radio-btn {
    background-color: #3390ec;
    color: white;
    border-color: #3390ec;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-input {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.radio-input-icon {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #3390ec;
    border-radius: 50%;
}

.radio-item input:checked + .radio-input .radio-input-icon {
    display: block;
}

.radio {
    display: none;
}

.form-group-link-wrap {
    margin-bottom: 15px;
}

.form-group-link {
    color: #3390ec;
    text-decoration: none;
    font-size: 14px;
}

.datetime-group {
    display: flex;
    gap: 15px;
}

.date-input-wrap, .time-input-wrap {
    flex: 1;
}

.pr-form-control-amount {
    display: flex;
    align-items: center;
    max-width: 400px;
}

.pr-form-control-prefix {
    padding: 0 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    height: 40px;
    display: flex;
    align-items: center;
}

.pr-form-control-amount .form-control {
    border-radius: 0 4px 4px 0;
    max-width: none;
}

.currency-ton-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.amount-currency {
    display: flex;
    align-items: center;
}

.pr-form-link {
    float: right;
    color: #3390ec;
    text-decoration: none;
    font-size: 14px;
}

.pr-form-select {
    position: relative;
    max-width: 400px;
}

.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 40px;
    align-items: center;
}

.selected-item {
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.selected-item-remove {
    margin-left: 5px;
    cursor: pointer;
    color: #777;
}

.input {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    padding: 5px;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
}

.pr-search-preview {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pr-preview-ad-search-field-wrap {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
}

.preview-search-icon {
    width: 20px;
    height: 20px;
    background-color: #777;
    border-radius: 50%;
    margin-right: 10px;
}

.preview-search-field {
    flex: 1;
    padding: 8px 12px;
    background-color: white;
    border-radius: 20px;
    font-size: 14px;
}

.pr-preview-ad-search-header {
    padding: 15px;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.pr-preview-ad-search-items {
    padding: 10px 0;
}

.pr-preview-ad-search-item {
    display: flex;
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.pr-preview-ad-search-item:hover {
    background-color: #f5f5f5;
}

.pr-preview-ad-item-photo {
    width: 40px;
    height: 40px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 10px;
}

.pr-preview-ad-item-content {
    flex: 1;
}

.pr-preview-ad-item-title {
    font-weight: 500;
}

.pr-preview-ad-item-desc {
    font-size: 12px;
    color: #777;
}

.pr-preview-ad-item-ad {
    background-color: #e3f2fd;
    color: #3390ec;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.pr-preview-ad-empty {
    padding: 40px 20px;
    text-align: center;
    color: #777;
}

.ad-msg-service {
    font-size: 14px;
}

.pr-ad-media-wrap {
    margin-bottom: 15px;
    max-width: 400px;
}

.pr-ad-media {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pr-edit-media-button {
    margin-top: 10px;
    max-width: 400px;
}

.shide {
    display: none;
}

.pr-radio-buttons-grid {
    display: flex;
    gap: 20px;
    border-radius: 8px;
    padding: 0.5px;
    max-width: 400px;
}

.pr-radio-button-grid {
    flex: 1;
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.pr-radio-btn-grid {
    flex: 1;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s ease;
    color: #333;
}

.pr-radio-button-grid input:checked + .pr-radio-btn-grid {
    background-color: #3390ec;
    color: white;
    box-shadow: 0 2px 4px rgba(51, 144, 236, 0.3);
}

.pr-radio-button-grid input:focus + .pr-radio-btn-grid {
    outline: 2px solid #3390ec;
    outline-offset: 2px;
}

.pr-radio-btn-grid:hover {
    background-color: #f5f5f5;
}

.pr-radio-button-grid input:checked + .pr-radio-btn-grid:hover {
    background-color: #2a7bc8;
}

/* استایل‌های جدید برای نوتیفیکیشن */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}

.notification.warning {
    background-color: #ff9800;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: " در حال ارسال...";
}

@media (max-width: 992px) {
    .pr-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .pr-form-column:last-child .pr-target-tabs {
        order: -1;
    }
    
    .pr-container {
        padding: 20px;
    }
    
    .form-control {
        max-width: 100%;
    }
    
    .pr-form-control-amount {
        max-width: 100%;
    }
    
    .pr-form-select {
        max-width: 100%;
    }
    
    .pr-ad-media-wrap {
        max-width: 100%;
    }
    
    .pr-edit-media-button {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .pr-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pr-breadcrumb {
        margin-top: 10px;
    }
    
    .pr-target-tabs {
        flex-wrap: wrap;
    }
    
    .datetime-group {
        flex-direction: column;
    }
    
    .pr-form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .pr-container {
        padding: 15px;
    }
    
    .pr-target-tabs-prefix {
        padding: 10px 5px;
    }
    
    .pr-radio-tab {
        padding: 10px 5px;
    }
    
    .pr-radio-buttons {
        flex-wrap: wrap;
    }
}
/* استایل برای بخش تست API */
.api-test-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.api-test-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.test-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.test-btn.primary {
    background-color: #28a745;
    color: white;
}

.test-btn.secondary {
    background-color: #6c757d;
    color: white;
}

.test-btn.warning {
    background-color: #ffc107;
    color: #212529;
}

.api-details {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}

/* استایل‌های جدید برای اعتبارسنجی */
.validation-loading {
    color: #3390ec;
    font-size: 12px;
    margin-top: 5px;
}

.validation-success {
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
}

.validation-error {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

.url-status {
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
}

.channel-info {
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
    border-right: 3px solid #3390ec;
}        

/* استایل‌های جدید برای اعتبارسنجی */
.validation-loading {
    color: #3390ec;
    font-size: 12px;
    margin-top: 5px;
}

.validation-success {
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
}

.validation-error {
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

.url-status {
    display: inline-block;
    margin-right: 5px;
    font-size: 14px;
}

.channel-info {
    background-color: #e3f2fd;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
    border-right: 3px solid #3390ec;
}