* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Century Gothic', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #253353;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    color: #253353;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.upload-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.single-upload {
    max-width: 500px;
    width: 100%;
}

.upload-box {
    flex: 1;
    min-width: 280px;
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pdf-info-box {
    flex: 1;
    min-width: 280px;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8fff9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.pdf-info-box h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.upload-box:hover {
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.file-name {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    word-break: break-all;
}

.preview-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(37, 51, 83, 0.12);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header h3 {
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-control {
    display: flex;
    align-items: center;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#pdfPreview {
    min-height: 400px;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    overflow: auto;
    position: relative;
}

#pdfCanvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.position-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.position-controls p {
    margin: 0;
    text-align: center;
}

.control-grid {
    display: grid;
    grid-template-columns: 35px 35px 35px;
    grid-template-rows: 35px 35px 35px;
    gap: 2px;
}

.control-up {
    grid-column: 2;
    grid-row: 1;
}

.control-left {
    grid-column: 1;
    grid-row: 2;
}

.control-center {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.control-right {
    grid-column: 3;
    grid-row: 2;
}

.control-down {
    grid-column: 2;
    grid-row: 3;
}

.position-controls button {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 4px;
    margin: 0;
}

button {
    background: linear-gradient(135deg, #0067a2 0%, #253353 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 103, 162, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 103, 162, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 103, 162, 0.3);
}

button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.logo-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.size-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.size-control label {
    font-weight: 500;
    color: #253353;
}

.delete-control {
    display: flex;
    align-items: center;
}

.delete-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.delete-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}


#downloadBtn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0067a2 0%, #253353 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 103, 162, 0.4);
    letter-spacing: 0.02em;
}

#downloadBtn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 103, 162, 0.5);
}

input[type="range"] {
    width: 150px;
    height: 6px;
    background: linear-gradient(to right, #0067a2 0%, #e2e8f0 0%);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0067a2 0%, #253353 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 103, 162, 0.3);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 103, 162, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0067a2 0%, #253353 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 103, 162, 0.3);
}

#sizeValue {
    min-width: 40px;
    display: inline-block;
    text-align: right;
    font-weight: 600;
    color: #253353;
}

/* Shine border animation */
@keyframes shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shine-border {
    position: relative;
    overflow: hidden;
}

.shine-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 103, 162, 0.4),
        rgba(0, 103, 162, 0.8),
        rgba(37, 51, 83, 0.8),
        rgba(37, 51, 83, 0.4),
        transparent
    );
    background-size: 400% 100%;
    animation: shine 3s ease-in-out infinite;
    border-radius: 8px;
    z-index: -1;
}

.shine-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f9f9f9;
    border-radius: 6px;
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upload-section {
        flex-direction: column;
    }
    
    .upload-box {
        width: 100%;
    }
    
    .preview-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
