/* Linearize PDF Tool Styles */

/* Form labels - prevent text selection */
.form-label {
    user-select: none;
}

/* PDF Preview Wrapper */
.pdf-preview-wrapper {
    width: 100%;
    height: 600px;
    border: 2px solid var(--bs-border-color);
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: #525659;
}

.pdf-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

[data-bs-theme="dark"] .pdf-preview-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: #2c2c2c;
}

/* Fullscreen Mode */
.viewer-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background-color: var(--bs-body-bg);
    padding: 1rem;
    overflow-y: auto;
    margin: 0 !important;
}

.viewer-fullscreen .pdf-preview-wrapper {
    height: calc(100vh - 100px) !important;
}

.viewer-fullscreen .form-label {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Dark theme for fullscreen */
[data-bs-theme="dark"] .viewer-fullscreen {
    background-color: var(--dark-bg-primary);
}

/* Status colors for linearized field */
#linearizedStatus.linearized-yes {
    color: #28a745;
    font-weight: bold;
}

#linearizedStatus.linearized-no {
    color: #dc3545;
    font-weight: bold;
}

/* Size change colors */
#sizeChange.size-reduced {
    color: #28a745;
    font-weight: 600;
}

#sizeChange.size-increased {
    color: #dc3545;
    font-weight: 600;
}

#sizeChange.size-unchanged {
    color: #6c757d;
}

/* Card styling */
.card-header {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Results section styling */
#downloadContainer .form-label {
    font-weight: 600;
    color: var(--bs-primary);
}

/* Preview button group */
.text-center .btn {
    min-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-preview-wrapper {
        height: 500px;
    }

    .text-center .btn {
        min-width: 130px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .pdf-preview-wrapper {
        height: 400px;
    }

    .text-center .btn {
        min-width: 100%;
        display: block;
        margin-bottom: 0.5rem;
    }

    #pdfInfoContainer .col-md-3 {
        margin-bottom: 0.5rem;
    }
}

/* Drag and drop hover effect */
.drag-drop-zone.drag-over {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Info textarea */
#info {
    font-family: inherit;
    white-space: pre-wrap;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
