/* PDF Editor - Sejda Architecture - Deep Neon Theme */

/* Upload Zone Styles */
.upload-zone {
    border: 2px dashed rgba(0, 243, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15);
}

/* Main container */
#pdf-canvas-container {
    width: 100%;
    margin: 0 auto;
}

/* Individual page container */
.pdf-page-container {
    position: relative;
    margin: 20px auto;
}

/* Editable text overlays - Deep Neon theme */
.sejda-text-overlay {
    cursor: text;
    background: transparent;
    border: 1px dashed transparent;
    transition: all 0.2s ease;
    outline: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.sejda-text-overlay:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.sejda-text-overlay.editing,
.sejda-text-overlay:focus {
    background: rgba(0, 243, 255, 0.15);
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    z-index: 100 !important;
}

/* Loading spinner - Deep Neon */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    backdrop-blur-xl;
}

.spinner {
    border: 4px solid rgba(0, 243, 255, 0.2);
    border-top: 4px solid #00f3ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#spinner-text {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Toolbar buttons */
.tool-btn {
    transition: all 0.3s;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tool-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #00f3ff;
    font-weight: bold;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

/* Edit indicator - Neon style */
.edit-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edit-count-badge {
    background: linear-gradient(135deg, #00f3ff 0%, #0099ff 100%);
    color: black;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Shortcuts hint - Glass dark */
.shortcuts-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 1000;
    max-width: 300px;
}

.shortcuts-hint h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: bold;
}

.shortcuts-hint ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shortcuts-hint li {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #d1d5db;
}

.shortcut-key {
    font-family: 'Courier New', monospace;
    background: rgba(0, 243, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #00f3ff;
}

/* Custom scrollbar - Deep Neon */
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.2);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .shortcuts-hint {
        display: none;
    }

    .upload-zone {
        padding: 40px 20px;
    }
}