/* RM Upload Frontend Styles */

.rmup-upload-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Upload Form */
.rmup-upload-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dropzone */
.rmup-dropzone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.rmup-dropzone:hover {
    border-color: #0073aa;
    background: #f0f7ff;
}

.rmup-dropzone.rmup-dragover {
    border-color: #0073aa;
    background: #e6f3ff;
    transform: scale(1.02);
}

.rmup-dropzone.rmup-file-selected {
    border-color: #28a745;
    background: #f0fff4;
}

.rmup-dropzone-content {
    pointer-events: none;
}

.rmup-upload-icon {
    color: #718096;
    margin-bottom: 16px;
}

.rmup-dropzone-text {
    font-size: 16px;
    color: #2d3748;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.rmup-dropzone-or {
    color: #a0aec0;
    margin: 12px 0;
    font-size: 14px;
}

.rmup-file-button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    pointer-events: all;
}

.rmup-file-button:hover {
    background: #005a87;
}

#rmup-file-input {
    display: none;
}

.rmup-file-info {
    margin-top: 16px;
    font-size: 13px;
    color: #718096;
}

/* Progress Bar */
.rmup-progress-wrapper {
    margin: 20px 0;
}

.rmup-progress-bar {
    width: 100%;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.rmup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.rmup-progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

/* Settings */
.rmup-settings {
    margin: 24px 0;
}

.rmup-form-group {
    margin-bottom: 16px;
}

.rmup-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

.rmup-form-group select,
.rmup-form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.rmup-form-group select:focus,
.rmup-form-group input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* CAPTCHA */
.rmup-captcha-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Submit Button */
.rmup-submit-btn {
    width: 100%;
    padding: 14px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rmup-submit-btn:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.rmup-submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Messages */
.rmup-message {
    margin: 20px 0;
    padding: 12px 16px;
    border-radius: 6px;
}

.rmup-message.rmup-error {
    background: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.rmup-message.rmup-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.rmup-message p {
    margin: 0;
}

/* Result */
.rmup-result {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rmup-result-success {
    text-align: center;
    margin-bottom: 30px;
}

.rmup-result-success svg {
    color: #28a745;
    margin-bottom: 16px;
}

.rmup-result-success h3 {
    color: #28a745;
    margin: 0 0 12px 0;
    font-size: 24px;
}

.rmup-result-success p {
    color: #718096;
    margin: 0;
}

/* Share Link */
.rmup-share-link {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

#rmup-share-url {
    flex: 1;
    padding: 12px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    background: #f7fafc;
}

.rmup-copy-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.rmup-copy-btn:hover {
    background: #005a87;
}

/* QR Code */
.rmup-qr-code {
    background: #f7fafc;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}

.rmup-qr-code h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #2d3748;
}

#rmup-qr-container {
    display: inline-block;
    border: 8px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    padding: 8px;
    margin: 0 auto;
}

#rmup-qr-container img {
    display: block;
    margin: 0;
}

.rmup-qr-hint {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #718096;
}

/* File Details */
.rmup-file-details {
    background: #f7fafc;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.rmup-file-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #2d3748;
}

.rmup-file-details strong {
    display: inline-block;
    min-width: 80px;
}

.rmup-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 12px;
    border-radius: 6px;
    margin-top: 16px !important;
    color: #856404 !important;
}

/* Secondary Button */
.rmup-secondary-btn {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #0073aa;
    border: 2px solid #0073aa;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rmup-secondary-btn:hover {
    background: #f0f7ff;
}

/* Multiple Files Display */
.rmup-multiple-files {
    width: 100%;
}

.rmup-upload-errors {
    background: #fee;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    color: #721c24;
}

.rmup-upload-errors h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.rmup-upload-errors ul {
    margin: 0;
    padding-left: 20px;
}

.rmup-upload-errors li {
    margin: 4px 0;
}

.rmup-multiple-files h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2d3748;
}

.rmup-file-item {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.rmup-file-info {
    margin-bottom: 12px;
}

.rmup-file-info strong {
    color: #2d3748;
    font-size: 15px;
}

.rmup-file-info small {
    color: #718096;
}

.rmup-file-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rmup-share-url-multi {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    background: #fff;
}

.rmup-copy-btn-multi {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.rmup-copy-btn-multi:hover {
    background: #005a87;
}

.rmup-qr-multi {
    text-align: center;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
}

.rmup-qr-multi img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

/* Profile & Dashboard Styles */
.rmup-profile-wrapper,
.rmup-dashboard-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.rmup-login-required,
.rmup-no-profile {
    text-align: center;
    padding: 60px 30px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.rmup-login-required p,
.rmup-no-profile p {
    color: #718096;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.rmup-login-btn {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.rmup-login-btn:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
    .rmup-upload-wrapper {
        margin: 10px;
    }

    .rmup-upload-form,
    .rmup-result {
        padding: 20px;
    }

    .rmup-dropzone {
        padding: 30px 15px;
    }

    .rmup-share-link {
        flex-direction: column;
    }

    .rmup-copy-btn {
        width: 100%;
    }

    .rmup-file-actions {
        flex-direction: column;
    }

    .rmup-copy-btn-multi {
        width: 100%;
    }
}
