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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

header {
    text-align: center;
    padding: 60px 20px;
    color: white;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounceIn 1.5s ease-out 0.5s both;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tool-card i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #667eea;
    animation: pulse 2s infinite;
}

.tool-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.tool-card p {
    color: #666;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.4s ease-out;
}

.modal-content {
    background-color: white;
    margin: 0;
    padding: 30px;
    border-radius: 20px;
    width: 85%;
    max-width: 800px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
    max-height: 85vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

.close:hover,
.close:focus {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(90deg) scale(1.1);
    text-decoration: none;
    cursor: pointer;
}

/* PDF Tools Styling */
.pdf-tools-grid {
    animation: gridFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px;
    gap: 25px;
}

.pdf-tool-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.pdf-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pdf-tool-card:hover::before {
    left: 100%;
}

.pdf-tool-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pdf-tool-card i {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pdf-tool-card:hover i {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.pdf-tool-card h3 {
    transition: all 0.3s ease;
    font-weight: 600;
}

.pdf-tool-card p {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.pdf-tool-card:hover p {
    opacity: 1;
    transform: translateY(-2px);
}

/* PDF Tool Content Animations */
#pdf-tool-content {
    animation: contentSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 25px;
    margin: 20px 0;
}

#pdf-tool-content h3 {
    animation: titleFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#pdf-tool-content p {
    animation: descFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

#pdf-tool-content input[type="file"] {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px dashed transparent;
}

#pdf-tool-content input[type="file"]:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

#pdf-tool-content button {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

#pdf-tool-content button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#pdf-tool-content button:hover::before {
    left: 100%;
}

#pdf-tool-content button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

#pdf-tool-content select {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #e1e8ed;
}

#pdf-tool-content select:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes statusSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Status Messages Styling */
#merge-status, #split-status, #compress-status, #convert-status, #rotate-status {
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: statusSlideIn 0.4s ease-out;
}

#merge-status i, #split-status i, #compress-status i, #convert-status i, #rotate-status i {
    margin-right: 8px;
}

.status-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: 1px solid #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.status-error {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
    border: 1px solid #f44336;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.status-loading {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: 1px solid #2196F3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

/* Enhanced PDF Tool Cards */
.pdf-tool-card {
    background-size: 200% 200%;
    background-position: 0% 0%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pdf-tool-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation-delay: 0.1s;
}

.pdf-tool-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    animation-delay: 0.2s;
}

.pdf-tool-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    animation-delay: 0.3s;
}

.pdf-tool-card:nth-child(4) {
    background: linear-gradient(135deg, #fa709a, #fee140);
    animation-delay: 0.4s;
}

.pdf-tool-card:nth-child(5) {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    animation-delay: 0.5s;
}

.pdf-tool-card:nth-child(6) {
    background: linear-gradient(135deg, #d299c2, #fef9d7);
    animation-delay: 0.6s;
}

.pdf-tool-card:hover {
    background-position: 100% 100%;
    transform: translateY(-8px) scale(1.03);
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .tool-card {
        padding: 30px 15px;
    }
    .tool-card i {
        font-size: 3rem;
    }

    /* PDF Tools Responsive */
    .pdf-tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .pdf-tool-card {
        padding: 20px 15px;
    }

    .pdf-tool-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .pdf-tool-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .pdf-tool-card p {
        font-size: 0.85rem;
    }

    #pdf-tool-content {
        padding: 15px;
        margin: 15px 0;
    }

    #pdf-tool-content input[type="file"] {
        width: 90%;
    }

    #pdf-tool-content select {
        width: 80%;
    }

    /* Privacy Policy Link Mobile Styling - SHIELD SHAPE */
    .privacy-mobile-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 60px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        border: 2px solid rgba(255, 255, 255, 0.2);
        animation: privacyPulse 2s infinite;
        text-decoration: none;
        /* Shield shape using clip-path */
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    }

    .privacy-mobile-button:hover {
        transform: scale(1.1) translateY(-2px);
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
        border-color: rgba(255, 255, 255, 0.4);
    }

    /* Privacy Policy Tooltip */
    .privacy-mobile-button::after {
        content: "Privacy Policy";
        position: absolute;
        bottom: 75px;
        right: 50%;
        transform: translateX(50%);
        background: rgba(255, 255, 255, 0.95);
        color: #2c3e50;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .privacy-mobile-button:hover::after {
        opacity: 1;
    }

    /* Desktop styling - ORIGINAL DESIGN for larger screens */
    @media (min-width: 769px) {
        .privacy-mobile-button {
            position: static;
            width: auto;
            height: auto;
            clip-path: none;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.1);
            display: inline-flex;
            align-items: center;
            padding: 8px 16px;
            font-size: 1rem;
            box-shadow: none;
            border: none;
            animation: none;
            color: white;
            text-decoration: none;
        }

        .privacy-mobile-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: none;
            box-shadow: none;
        }

        .privacy-mobile-button::after {
            display: none;
        }

        /* Show text on desktop */
        .privacy-text {
            display: inline;
            color: white;
            background: rgba(255, 255, 255, 0.15);
            padding: 6px 12px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Hide icon on desktop */
        .mobile-icon {
            display: none;
        }
    }

    /* Hide text on mobile */
    @media (max-width: 768px) {
        .privacy-text {
            display: none;
        }

        /* Show icon on mobile */
        .mobile-icon {
            display: inline-block;
            margin-right: 0;
        }
    }
}

/* PDF Tools Styling */
.download-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin: 10px 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

.download-container {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.download-container br {
    margin: 8px 0;
}

/* Status Messages */
.status-success {
    color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.status-error {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.status-loading {
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* PDF Viewer Controls */
#pdf-controls button {
    transition: all 0.2s ease;
}

#pdf-controls button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#pdf-controls button:disabled {
    cursor: not-allowed;
}

#pdf-canvas-container {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* PDF Thumbnail Styles */
.pdf-thumbnail-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    justify-content: space-between;
}

.pdf-thumbnail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pdf-thumbnail-card.selected {
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pdf-thumbnail-card.selected:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.pdf-thumbnail-canvas {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 8px 0;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    background: white;
}

.pdf-thumbnail-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.thumbnail-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #667eea;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.pdf-thumbnail-card.selected .thumbnail-checkbox {
    opacity: 1;
}

.pdf-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    margin: 15px 0;
}

.pdf-thumbnails-container {
    margin: 20px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.pdf-thumbnails-container h4 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* Selection info styling */
.selection-info {
    text-align: center;
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.selection-info:empty {
    display: none;
}

/* Status message styles for PDF tools */
.status-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.status-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.status-loading {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.download-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-container {
    margin-top: 15px;
    text-align: center;
}

.download-container br {
    margin: 10px 0;
}

/* Custom Animated Dropdown for Convert Tool */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 60%;
    margin: 20px 0;
}

.dropdown-trigger {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.dropdown-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-trigger:hover::before {
    left: 100%;
}

.dropdown-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.dropdown-trigger .dropdown-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #667eea;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
    margin-top: 5px;
}

.dropdown-options.show {
    max-height: 200px;
    opacity: 1;
}

.dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.dropdown-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dropdown-option:hover::before {
    left: 100%;
}

.dropdown-option:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    padding-left: 25px;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option.selected {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-weight: 600;
}

/* QR Code Generator Styling */
#qr-size {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    height: 10px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

#qr-size::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#qr-size::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

#qr-size::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

#qr-size::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

#qr-size::-moz-range-track {
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    height: 10px;
    border: none;
}

/* QR Code Download Buttons */
#qr-download-options button {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#qr-download-options button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#qr-download-options button:hover::before {
    left: 100%;
}

#qr-download-options button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* QR Code Container Styling */
#qr-code-container {
    animation: qrFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid rgba(102, 126, 234, 0.2);
    transition: border-color 0.3s ease;
}

#qr-code-container:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

@keyframes privacyPulse {
    0% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 0 0 0 rgba(102, 126, 234, 0);
    }
}