/* Research Paper Marketplace - Frontend Styles */

.rpm-submission-form-wrapper,
.rpm-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.rpm-form-container,
.rpm-dashboard-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rpm-form-title,
.rpm-dashboard-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

.rpm-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.rpm-dashboard-header .rpm-dashboard-title {
    margin-bottom: 0;
}

.rpm-submit-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1a4d6b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(26, 77, 107, 0.2);
    white-space: nowrap;
}

.rpm-submit-btn:hover {
    background: #2c5f7c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 77, 107, 0.3);
}

/* Form Styles */
.rpm-form-group {
    margin-bottom: 25px;
}

.rpm-form-section {
    margin: 40px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.rpm-section-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.rpm-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 14px;
}

.rpm-input,
.rpm-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.rpm-input:focus,
.rpm-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.rpm-textarea {
    resize: vertical;
    min-height: 100px;
}

.rpm-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* Image Upload */
.rpm-image-upload-wrapper,
.rpm-gallery-upload-wrapper {
    margin-top: 10px;
}

.rpm-image-preview,
.rpm-gallery-preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.rpm-image-preview img,
.rpm-gallery-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 4px;
    border: 2px solid #ddd;
    object-fit: cover;
}

/* Categories */
.rpm-categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.rpm-checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.rpm-checkbox-label:hover {
    background: #e8e8e8;
}

.rpm-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Document Attachments */
.rpm-document-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.rpm-document-item:last-child {
    margin-bottom: 0;
}

/* Buttons */
.rpm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.rpm-btn-primary {
    background: #3498db;
    color: #fff;
}

.rpm-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.rpm-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.rpm-btn-secondary:hover {
    background: #7f8c8d;
}

.rpm-submit-group {
    margin-top: 30px;
    text-align: center;
}

.rpm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.rpm-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.rpm-message.rpm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rpm-message.rpm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#rpm-message-container {
    margin-bottom: 20px;
}

/* Dashboard Styles */
.rpm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.rpm-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rpm-stat-card.rpm-stat-pending {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.rpm-stat-card.rpm-stat-published {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.rpm-stat-card.rpm-stat-draft {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.rpm-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.rpm-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.rpm-products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rpm-products-table thead {
    background: #34495e;
    color: #fff;
}

.rpm-products-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.rpm-products-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.rpm-products-table tbody tr:hover {
    background: #f9f9f9;
}

.rpm-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rpm-status-pending {
    background: #fff3cd;
    color: #856404;
}

.rpm-status-publish {
    background: #d4edda;
    color: #155724;
}

.rpm-status-draft {
    background: #d1ecf1;
    color: #0c5460;
}

.rpm-action-link {
    color: #3498db;
    text-decoration: none;
    margin-right: 15px;
    font-size: 14px;
}

.rpm-action-link:hover {
    text-decoration: underline;
}

.rpm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

/* Rich Text Editor Adjustments */
.wp-editor-container {
    margin-top: 10px;
}

.wp-editor-container textarea {
    min-height: 300px;
}

/* Free Sample Download */
.rpm-free-sample {
    margin: 20px 0;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 5px;
    border-left: 4px solid #4caf50;
}

.rpm-free-sample h3 {
    margin-top: 0;
    color: #2e7d32;
}

.rpm-free-sample-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}

.rpm-free-sample-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .rpm-submission-form-wrapper,
    .rpm-dashboard-wrapper {
        padding: 10px;
    }
    
    .rpm-form-container,
    .rpm-dashboard-container {
        padding: 20px;
    }
    
    .rpm-dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rpm-dashboard-header .rpm-dashboard-title {
        margin-bottom: 15px;
    }
    
    .rpm-submit-btn {
        width: 100%;
        text-align: center;
    }
    
    .rpm-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .rpm-products-table {
        font-size: 12px;
    }
    
    .rpm-products-table th,
    .rpm-products-table td {
        padding: 10px;
    }
}

