
     :root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3f7;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.upload-section {
    margin-bottom: 20px;
    text-align: center;
}

#image-upload {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

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

#file-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.editor-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.toolbar button, #filter-select {
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.toolbar button:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

#filter-select {
    flex-grow: 1;
    max-width: 200px;
}

.image-preview-container {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

#image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.thumbnail.active {
    border-color: var(--accent-color);
}

#preview-canvas {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#crop-area {
    position: absolute;
    border: 2px dashed white;
    cursor: move;
    background-color: rgba(255, 255, 255, 0.2);
}

#apply-crop, #cancel-crop {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 11;
}

#apply-crop:hover, #cancel-crop:hover {
    background-color: var(--secondary-color);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

#generate-pdf {
    background-color: var(--primary-color);
    color: white;
}

#generate-pdf:hover {
    background-color: var(--secondary-color);
}

#generate-pdf:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#clear-all {
    background-color: #dc3545;
    color: white;
}

#clear-all:hover {
    background-color: #c82333;
}

.hidden {
    display: none !important;
}
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            padding: 15px;
            margin-top: 30px;
        }
        
        .feature {
            background-color: #fff;
            padding: 20px;
            margin: auto;
            border-radius: 8px;
            height: 16rem;
            box-shadow: 0 5px 12px rgba(0, 0, 0, 0.05);
        }
        
        .feature-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .feature-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--secondary-color);
        }
        
        @media (max-width: 768px) {
            .features {
                grid-template-columns: 1fr;
            }
        }