/* Compress PDF Specific Styles */

/* Status Bar */
.status-bar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.status-item i {
    font-size: 1.1rem;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    min-height: 300px;
}

.pdf-file-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pdf-file-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-preview {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    position: relative;
}

.pdf-preview i {
    font-size: 2.5rem;
    color: white;
}

.pdf-file-name {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-file-size {
    font-size: 0.75rem;
    color: var(--text-color-light);
}

.remove-file-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Compression Settings */
.compression-settings {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.setting-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.setting-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Compress Button */
.compress-action {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-compress {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-compress:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-compress:active {
    transform: translateY(0);
}

.btn-compress i {
    font-size: 1.2rem;
}

/* Drag and Drop Effects */
.upload-area.drag-over .upload-box {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.02);
}

.upload-area.drag-over .upload-box i {
    color: var(--primary-color);
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

#editor-area {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 100px;
}

.files-list-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.file-item-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.file-item-details {
    flex-grow: 1;
    overflow: hidden;
}

.file-item-details .file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-details .file-size {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.file-item .remove-btn {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.file-item .remove-btn:hover {
    color: #ff4d4d;
}

/* Options Sidebar */
.options-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.options-sidebar h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.options-description {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.compression-levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-card {
    position: relative;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card label {
    display: block;
    padding: 1rem;
    border: 2px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-card label:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.radio-card input[type="radio"]:checked+label {
    border-color: var(--primary-color);
    background-color: rgba(255, 77, 141, 0.1);
}

.radio-card label strong {
    display: block;
    font-weight: 600;
    color: var(--text-color);
}

.radio-card label span {
    font-size: 0.85rem;
    color: var(--text-color-light);
}

/* Fixed Bottom Bar */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-top: 1px solid var(--card-border);
}

@media screen and (max-width: 900px) {
    #editor-area {
        grid-template-columns: 1fr;
    }

    .options-sidebar {
        position: static;
    }
}