/* Documents Upload Form Styles */
.documents-upload-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.documents-upload-form h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.documents-upload-form .description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.documents-upload-form .form-row {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.documents-upload-form .form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.documents-upload-form .input-file {
    width: 100%;
    padding: 10px;
    border: 2px dashed #0073aa;
    border-radius: 4px;
    background: #f0f8ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.documents-upload-form .input-file:hover {
    border-color: #005a87;
    background: #e6f3ff;
}

.documents-upload-form .input-file.dragover {
    border-color: #28a745;
    background: #d4edda;
}

.documents-upload-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.documents-upload-form .current-file {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 4px;
}

.documents-upload-form .file-info {
    margin-bottom: 10px;
}

.documents-upload-form .file-preview {
    text-align: center;
    margin: 15px 0;
}

.documents-upload-form .file-preview img {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.documents-upload-form .file-actions {
    margin-top: 15px;
    text-align: center;
}

.documents-upload-form .file-actions .button {
    margin: 0 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.documents-upload-form .file-actions .remove-file {
    background: #dc3545;
    color: white;
}

.documents-upload-form .file-actions .remove-file:hover {
    background: #c82333;
}

.documents-upload-form .file-actions .replace-file {
    background: #ffc107;
    color: #212529;
}

.documents-upload-form .file-actions .replace-file:hover {
    background: #e0a800;
}

.documents-upload-form .view-file {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.documents-upload-form .view-file:hover {
    text-decoration: underline;
}

.documents-upload-form .file-info-new {
    background: #e7f3ff;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #b3d9ff;
    color: #004085;
}

.documents-upload-form .replace-mode-indicator {
    background: #fff3cd;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.documents-upload-form button[name="rom1_update_documents"] {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.documents-upload-form button[name="rom1_update_documents"]:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.documents-upload-form button[name="rom1_update_documents"]:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.documents-upload-form .form-help {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .documents-upload-form {
        padding: 15px;
        margin: 10px;
    }
    
    .documents-upload-form .form-row {
        padding: 10px;
    }
    
    .documents-upload-form .file-preview img {
        max-width: 150px;
        max-height: 100px;
    }
    
    .documents-upload-form .file-actions .button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

/* Loading Animation */
.documents-upload-form button[name="rom1_update_documents"]:disabled::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.woocommerce-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

.woocommerce-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

.woocommerce-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    margin: 20px 0;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    text-align: center;
}
