.atpdf-button-container {
    margin: 20px 0;
    display: block;
    text-align: right;
}

/* Icon-only style */
.atpdf-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #000000;
    padding: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.atpdf-icon-only svg {
    width: 28px;
    height: 28px;
}

/* Hover state */
.atpdf-icon-only:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

/* KI Pro specific icon styling - also black */
.ki-pro .atpdf-icon-only {
    color: #000000;
}

.ki-pro .atpdf-icon-only:hover {
    opacity: 0.7;
}

/* Old button style for backwards compatibility */
.atpdf-button {
    background: linear-gradient(200deg, #4F31DF, #00C6FF);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.atpdf-button:hover {
    background: linear-gradient(200deg, #3d25b3, #00a8d8);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.ki-pro .atpdf-button {
    background: linear-gradient(286deg, #9046ac -10%, #14315B 70%);
}

.ki-pro .atpdf-button:hover {
    background: linear-gradient(286deg, #7a3a93 -10%, #0f2442 70%);
}

.atpdf-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.atpdf-loader {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Spinner for icon buttons */
.atpdf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #666;
    border-radius: 50%;
    animation: atpdf-spin 0.8s linear infinite;
}

@keyframes atpdf-spin {
    to {
        transform: rotate(360deg);
    }
}

.atpdf-success {
    padding: 10px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-top: 10px;
    text-align: center;
    display: block;
    width: 100%;
}

.atpdf-error {
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin-top: 10px;
    text-align: center;
    display: block;
    width: 100%;
}

.atpdf-shortcode-button {
    display: inline-block;
    margin: 10px 0;
}

/* Page break helpers for PDF */
.page-break-before {
    page-break-before: always;
}

.page-break-after {
    page-break-after: always;
}

@media print {
    .atpdf-button-container {
        display: none !important;
    }
}