/* ============================================================
   PDF GENERATOR STYLES
   Color picker modal and PDF generation UI
   ============================================================ */

.pdf-color-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.pdf-color-picker-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.pdf-color-picker-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pdf-color-picker-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pdf-color-picker-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.color-picker-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.color-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker-row label {
    flex: 0 0 120px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.color-picker-row input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.color-picker-row input[type="color"]:hover {
    border-color: var(--accent-primary);
}

.color-preview {
    width: 80px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.color-preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.preset-btn {
    padding: 12px 16px;
    background: var(--bg-darkest);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--button-primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-darkest);
    border-color: var(--text-primary);
}

/* PDF action buttons in modules */
.pdf-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pdf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--button-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-action-btn:hover {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
}

.pdf-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pdf-action-btn.secondary {
    background: var(--bg-darkest);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.pdf-action-btn.secondary:hover {
    background: var(--bg-surface);
}

.pdf-preview-notice {
    background: var(--status-info);
    color: #fff;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-preview-notice::before {
    content: 'ℹ️';
    font-size: 16px;
}

@media (max-width: 768px) {
    .pdf-color-picker-content {
        padding: 24px;
        width: 95%;
    }

    .color-preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .pdf-action-buttons {
        flex-direction: column;
    }

    .pdf-action-btn {
        width: 100%;
        justify-content: center;
    }
}
