/* News Kartabl Form Pro v1.3 - Style */
#nkfp-form {
    direction: rtl; font-family: Tahoma, Arial, sans-serif; max-width: 1000px; margin: 30px auto; padding: 40px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa); border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,.1);
    border: 1px solid #e0e0e0; transition: all 0.3s ease;
}
#nkfp-form:hover { box-shadow: 0 20px 40px rgba(0,0,0,.15); }

.form-group { margin-bottom: 28px; }
.form-group label {
    display: block; font-weight: 600; color: #2c3e50; margin-bottom: 10px; font-size: 1.1em;
    position: relative; padding-right: 5px;
}
.form-group label::after {
    content: ''; position: absolute; right: 0; bottom: -4px; width: 30px; height: 2px; background: #b20000; border-radius: 2px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 18px; border: 2px solid #dfe6e9; border-radius: 12px; font-size: 1em;
    background: #fff; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: #b20000; box-shadow: 0 0 0 4px rgba(178,0,0,.1); outline: none; background: #fff;
}

.category-list {
    max-height: 220px; overflow-y: auto; border: 1px solid #ddd; padding: 12px; border-radius: 12px;
    background: #f9f9f9; box-shadow: inset 0 2px 6px rgba(0,0,0,.05);
}
.category-list ul { list-style: none; padding: 0; margin: 0; }
.category-list li { margin: 10px 0; font-size: 0.95em; }

#related-search {
    width: 100%; padding: 14px; border: 2px solid #ddd; border-radius: 12px; margin-bottom: 12px;
    font-size: 1em; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
#related-results {
    max-height: 180px; overflow-y: auto; border: 1px solid #ddd; background: #fff;
    border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.1); margin-bottom: 12px;
}
#related-results .result-item {
    padding: 12px 15px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 0.95em;
    transition: background 0.2s ease;
}
#related-results .result-item:hover { background: #e3f2fd; color: #1976d2; }
#related-results .result-item:last-child { border-bottom: none; }

#selected-related { margin-top: 10px; }
.related-tag {
    display: inline-block; background: linear-gradient(45deg, #e3f2fd, #bbdefb); color: #1976d2;
    padding: 8px 16px; border-radius: 30px; margin: 6px; font-size: 0.9em; font-weight: 500;
    box-shadow: 0 2px 6px rgba(25,118,210,.2);
}
.related-tag a {
    color: #d32f2f; margin-right: 10px; text-decoration: none; font-weight: bold; font-size: 1.1em;
    transition: color 0.2s ease;
}
.related-tag a:hover { color: #b71c1c; }

.submit-btn {
    background: linear-gradient(135deg, #b20000, #900000); color: white; padding: 16px 44px; border: none;
    border-radius: 50px; font-size: 1.2em; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 20px rgba(178,0,0,.25); transition: all 0.3s ease; margin-top: 25px;
    display: inline-block; position: relative; overflow: hidden;
}
.submit-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left 0.6s ease;
}
.submit-btn:hover::before { left: 100%; }
.submit-btn:hover {
    background: linear-gradient(135deg, #900000, #700000); transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(178,0,0,.3);
}

#success-message {
    display: none; background: linear-gradient(135deg, #d4edda, #c3e6cb); color: #155724;
    padding: 18px; border-radius: 14px; text-align: center; margin-top: 25px; font-weight: 600;
    border: 1px solid #c3e6cb; box-shadow: 0 4px 12px rgba(40,167,69,.15);
}

/* مدیریت منابع */
.wp-list-table { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.wp-list-table th { background: linear-gradient(90deg, #2c3e50, #3498db); color: white; }
.wp-list-table tr:hover { background: #f8f9fa; }
.button-danger { background: #e74c3c; border-color: #c0392b; }
.button-danger:hover { background: #c0392b; }
#edit-modal { background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 20px; margin-top: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.1); }