﻿.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

    .upload-area:hover {
        border-color: #0d6efd;
        background: #f8f9fa;
    }

    .upload-area.active {
        border-color: #0d6efd;
        background: #f0f7ff;
    }

#fileInput {
    display: none;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.drop-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    flex-grow: 1;
}

.preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.preview-image-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--preview-bg);
    position: relative;
    overflow: hidden;
}

.preview-image {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: all 0.3s;
}

.preview-page {
    position: absolute;
    border: 1px dashed rgba(0,0,0,0.3);
    background-color: rgba(255,255,255,0.7);
    box-sizing: border-box;
}

.preview-controls {
    padding: 8px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-filename {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.remove-btn {
    background: #c0392b;
    color: white;
    border: none;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

    .remove-btn:hover {
        background: #c0392b;
    }

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    border-radius: 30px;
}


.option-group {
    margin-bottom: 25px;
}

    .option-group h3 {
        margin-bottom: 10px;
        font-size: 16px;
        display: flex;
        align-items: center;
    }

        .option-group h3 i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }

.orientation-options {
    display: flex;
    gap: 10px;
}

.orientation-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

    .orientation-btn i {
        display: block;
        font-size: 24px;
        margin-bottom: 5px;
    }

    .orientation-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .orientation-btn:hover {
        background: rgba(255,255,255,0.2);
    }

select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: rgba(255,255,255,0.9);
    margin-top: 5px;
}

.margin-options {
    display: flex;
    gap: 10px;
}

.margin-btn {
    flex: 1;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

    .margin-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .margin-btn:hover {
        background: rgba(255,255,255,0.2);
    }

.checkbox-option {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

    .checkbox-option input {
        margin-right: 10px;
    }

.convert-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .convert-btn:hover {
        background: var(--secondary-color);
    }

    .convert-btn:disabled {
        background: #95a5a6;
        cursor: not-allowed;
    }

.highlight {
    border-color: #27ae60 !important;
    background-color: rgba(39, 174, 96, 0.1) !important;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: -1;
    }
}


.preview-image {
    width: 100%;
    height: auto;
}

.page-number1 {
    width: 25%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.highlight {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.progress-bar-animated {
    transition: width 0.3s ease;
}

.delete-page {
    margin: 5px 0px 0px 5px;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

    .delete-page:hover {
        background: rgba(231, 76, 60, 1);
    }
.card{
    position: inherit;
}

