/**
 * PCP Zenodo Connector - Modal Styles (Fixed)
 */

/* Zenodo Upload Button */
.pcp-zenodo-upload-btn {
    background: linear-gradient(135deg, #0066cc, #0052a3) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px;
    margin: 0 !important;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.pcp-zenodo-upload-btn:hover {
    background: linear-gradient(135deg, #0052a3, #004080) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

/* Modal Container */
#pcp-zenodo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#pcp-zenodo-modal .modal-content {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Modal Header */
#pcp-zenodo-modal .modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #0066cc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0066cc, #0052a3);
}

#pcp-zenodo-modal .modal-header h2 {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

#pcp-zenodo-modal .modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.2s;
}

#pcp-zenodo-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Modal Body */
#pcp-zenodo-modal .modal-body {
    padding: 30px;
}

/* Zenodo Sections - Klare Step-Struktur */
.zenodo-section {
    margin-bottom: 30px;
    padding: 0;
}

.zenodo-section:last-child {
    margin-bottom: 10px;
}

/* Step Headers */
.zenodo-section h3 {
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 6px;
    display: block;
}

.zenodo-section h4 {
    margin: 0 0 15px 0;
    padding: 12px 18px;
    background: #ffc107;
    color: #856404 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 6px;
}

/* Content Boxes */
.zenodo-section .pcp-form-group {
    background: #f9f9f9;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.zenodo-section .pcp-form-group:last-of-type {
    margin-bottom: 0;
}

.zenodo-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px !important;
}

.zenodo-section input[type="text"],
.zenodo-section input[type="password"],
.zenodo-section select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px !important;
    transition: border-color 0.2s;
}

.zenodo-section input:focus,
.zenodo-section select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.zenodo-section .description {
    margin: 8px 0 0;
    font-size: 13px !important;
    color: #666;
    line-height: 1.5;
}

.zenodo-section .description code {
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #0066cc;
    border: 1px solid #e0e0e0;
}

.zenodo-section .description a {
    color: #0066cc;
    font-weight: 600;
}

/* Buttons in Sections */
.zenodo-section button.btn {
    margin-top: 15px;
    padding: 10px 18px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.zenodo-section button.btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* Metadata Preview */
.metadata-preview {
    background: white;
    padding: 20px;
    border: 2px solid #0066cc;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
}

.preview-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px !important;
}

.preview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.preview-item strong {
    display: inline-block;
    min-width: 100px;
    color: #0066cc;
    font-weight: 700;
    font-size: 14px !important;
}

/* Cost Estimate */
.cost-estimate {
    background: #fff3cd !important;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #ffc107 !important;
    margin-top: 20px;
}

.cost-estimate h4 {
    background: none !important;
    padding: 0 !important;
}

.cost-estimate p {
    margin: 8px 0;
    color: #856404 !important;
    font-size: 14px !important;
}

.cost-estimate strong {
    font-size: 16px !important;
    font-weight: 800;
}

/* Modal Footer */
#pcp-zenodo-modal .modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8f9fa;
}

#pcp-zenodo-modal .btn-cancel,
#pcp-zenodo-modal .btn-upload {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 600;
    transition: all 0.2s;
}

#pcp-zenodo-modal .btn-cancel {
    background: #6c757d;
    color: white;
}

#pcp-zenodo-modal .btn-cancel:hover {
    background: #5a6268;
}

#pcp-zenodo-modal .btn-upload.primary {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
}

#pcp-zenodo-modal .btn-upload.primary:hover {
    background: linear-gradient(135deg, #0052a3, #004080);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

#pcp-zenodo-modal .btn-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Connection Status */
#pcp-zenodo-connection-status {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px !important;
    font-weight: 600;
}

/* Version 2.0 - 2024-12-19 */