/* PDF Editor Styles */
.pdf-editor {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    background-color: #e0e0e0;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
}

.tool-btn {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-btn i {
    margin-right: 5px;
}

.font-panel {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.font-panel.hidden {
    display: none;
}

.workspace {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.pdf-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
}

.pdf-navigation button {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
}

.pdf-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pdf-preview {
    display: flex;
    justify-content: center;
    background-color: #fff;
    min-height: 500px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px;
}

.pdf-pages {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.page-thumbnails {
    display: flex;
    overflow-x: auto;
    margin-top: 15px;
    padding: 10px 0;
}

.page-thumbnail {
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.page-thumbnail.active,
.page-thumbnail:hover {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.drag-over {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.error-message {
    color: #ff0000;
    background-color: #ffeeee;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.placeholder-text {
    color: #888;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.notification.fade-out {
    opacity: 0;
}

.error-message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.error-message.fade-out {
    opacity: 0;
}

/* Additional improvements to existing styles */
.page-thumbnail {
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-thumbnail.active {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.page-thumbnail:hover {
    transform: scale(1.05);
}