/* Modern Frontend Upload Styles */

.rock-slide-upload-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rock-slide-notice {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rock-slide-notice.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.rock-slide-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two columns */
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Premium shadow */
}

@media (max-width: 768px) {
    .rock-slide-form {
        grid-template-columns: 1fr;
    }
}

/* Left Column */
.input-wrapper {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.floating-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    /* Neutral gray */
    border-radius: 10px;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.floating-input:focus {
    outline: none;
    background: #fff;
    border-color: #4f46e5;
    /* Indigo accent */
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.floating-input {
    min-height: 120px;
    resize: vertical;
}

/* Pricing Section */
.pricing-base {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.price-display-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.price-display {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    font-feature-settings: "tnum";
}

.price-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
    transition: transform 0.1s;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-slider.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submit Button */
.rs-btn-submit {
    width: 100%;
    padding: 16px;
    background: #111827;
    /* Dark black/gray */
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rs-btn-submit:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rs-btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Right Column: Drop Zones */
.rs-file-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.rs-file-drop-zone:hover,
.rs-file-drop-zone.rs-drag-over {
    border-color: #4f46e5;
    background: #ecf0ff;
}

.rs-drop-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.rs-drop-text {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.rs-drop-hint {
    font-size: 13px;
    color: #94a3b8;
}

.rs-file-drop-zone input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Previews */
.rs-file-preview,
.rs-gallery-preview {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.rs-preview-item {
    background: #eff6ff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #1e40af;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
}

.rs-form-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.rs-form-message.success {
    color: #10b981;
}

.rs-form-message.error {
    color: #ef4444;
}

/* Bulk Status Styles */
.rs-batch-status {
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}

.rs-uploading-item {
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
}

.rs-uploading-item.success {
    color: #10b981;
}

.rs-uploading-item.error {
    color: #ef4444;
}

/* RockSlides Header User Menu (Added Phase 1) */
.rock-user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu-trigger:hover {
    background: rgba(0, 0, 0, 0.03);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.rock-user-menu:hover .user-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 6px 0;
}

/* ============================================
   Pricing Toggle (Free/Paid)
   ============================================ */
.rs-pricing-section {
    margin-bottom: 24px;
}

.rs-pricing-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.rs-toggle-option {
    flex: 1;
    cursor: pointer;
}

.rs-toggle-option input[type="radio"] {
    display: none;
}

.rs-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
    text-align: center;
}

.rs-toggle-option input[type="radio"]:checked + .rs-toggle-label {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Price Input Row */
.rs-price-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 16px;
    transition: border-color 0.2s;
}

.rs-price-input-row:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.rs-currency-prefix {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.rs-price-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    outline: none;
    padding: 4px 0;
    font-feature-settings: "tnum";
    -moz-appearance: textfield;
}

.rs-price-input::-webkit-inner-spin-button,
.rs-price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.rs-currency-suffix {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
}

/* ============================================
   License Type Selector
   ============================================ */
.rs-license-section {
    margin-bottom: 24px;
}

.rs-license-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rs-license-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.rs-license-check:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
}

.rs-license-check input[type="checkbox"] {
    accent-color: #4f46e5;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.rs-license-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rs-license-info strong {
    font-size: 14px;
    color: #1e293b;
}

.rs-license-info span {
    font-size: 12px;
    color: #94a3b8;
}

.rs-license-price {
    font-size: 14px;
    font-weight: 700;
    color: #4f46e5;
    background: #ede9fe;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

/* ============================================
   Category Row
   ============================================ */
.rs-category-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.rs-category-row .rs-half {
    flex: 1;
}

.rs-category-row select.floating-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Submit Hint */
.rs-submit-hint {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Submit button with icon */
.rs-btn-submit svg {
    vertical-align: -3px;
    margin-right: 6px;
}