.damaso-pdf-wrapper {
    position: relative;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.damaso-pdf-wrapper:fullscreen {
    background: #2c2c2c;
}

.damaso-pdf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 15px;
    border-bottom: 2px solid #5568d3;
    flex-wrap: wrap;
    gap: 10px;
}

.damaso-pdf-controls-left,
.damaso-pdf-controls-center,
.damaso-pdf-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.damaso-pdf-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.damaso-pdf-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.damaso-pdf-btn:active {
    transform: translateY(0);
}

.damaso-pdf-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.damaso-pdf-page-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.damaso-pdf-page-input {
    width: 50px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: bold;
}

.damaso-pdf-page-input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.damaso-pdf-separator {
    margin: 0 2px;
    font-weight: bold;
}

.damaso-pdf-zoom-level {
    min-width: 50px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 0 5px;
}

.damaso-pdf-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    overflow: auto;
    background: #525659;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.damaso-pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: #fff;
}

.damaso-pdf-container.dark-mode .damaso-pdf-canvas {
    background: #1a1a1a;
}

.damaso-pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.damaso-pdf-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: damaso-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes damaso-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.damaso-pdf-notice {
    padding: 40px 20px;
    text-align: center;
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 16px;
    font-weight: 500;
}

.components-placeholder.damaso-pdf-placeholder {
    min-height: 400px;
    background: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.components-placeholder__label {
    color: #667eea !important;
    font-weight: bold;
}

.components-placeholder__icon {
    color: #d63638 !important;
}

.damaso-pdf-editor-preview {
    transition: all 0.3s ease;
}

.damaso-pdf-editor-preview:hover {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

@media (max-width: 768px) {
    .damaso-pdf-toolbar {
        flex-direction: column;
    }
    
    .damaso-pdf-controls-left,
    .damaso-pdf-controls-center,
    .damaso-pdf-controls-right {
        width: 100%;
        justify-content: center;
    }
    
    .damaso-pdf-btn {
        padding: 10px 14px;
    }
    
    .damaso-pdf-container {
        padding: 10px;
    }
    
    .damaso-pdf-editor-preview {
        padding: 20px 15px !important;
    }
}

@media (max-width: 480px) {
    .damaso-pdf-btn .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
    
    .damaso-pdf-btn {
        padding: 8px 10px;
    }
    
    .damaso-pdf-page-input {
        width: 45px;
        padding: 5px 6px;
        font-size: 13px;
    }
}

.damaso-pdf-wrapper:fullscreen .damaso-pdf-container {
    height: calc(100vh - 60px);
}