/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #4a5568;
    background: linear-gradient(135deg, #fef7ed 0%, #fce7f3 50%, #e0e7ff 100%);
    background-attachment: fixed;
}

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

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.1);
    border-bottom: 1px solid rgba(244, 114, 182, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.logo-pdf {
    color: #f472b6;
}

.logo-jpg {
    color: #8b5cf6;
}

/* File type colors */
.fa-file-pdf { color: #e53e3e !important; } /* PDF - Red */
.fa-file-word { color: #1f5582 !important; } /* Word - Dark Blue */
.fa-file-excel { color: #107c41 !important; } /* Excel - Green */
.fa-file-image { color: #f56500 !important; } /* JPG/Images - Orange */
.fa-images { color: #f56500 !important; } /* Multiple Images - Orange */

/* Image format specific colors */
.fa-file-image.jpg { color: #f56500 !important; } /* JPG - Orange */
.fa-file-image.png { color: #9333ea !important; } /* PNG - Purple */
.fa-file-image.webp { color: #10b981 !important; } /* WebP - Emerald */

/* Custom image format classes */
.icon-jpg { color: #f56500 !important; } /* JPG - Orange */
.icon-png { color: #9333ea !important; } /* PNG - Purple */
.icon-webp { color: #10b981 !important; } /* WebP - Emerald */

/* Specific file format icons */
i[class*="fa-file"]:not(.fa-file-pdf):not(.fa-file-word):not(.fa-file-excel):not(.fa-file-image) {
    color: #6b7280; /* Default gray for other file types */
}

.logo-heart {
    height: 0.9em !important;
    width: 0.9em !important;
    max-height: 0.9em !important;
    max-width: 0.9em !important;
    margin-left: 0.3em;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        filter: brightness(1);
    }
    25% { 
        transform: scale(1.15) rotate(-2deg); 
        filter: brightness(1.1);
    }
    50% { 
        transform: scale(1.05) rotate(1deg); 
        filter: brightness(1.05);
    }
    75% { 
        transform: scale(1.1) rotate(-1deg); 
        filter: brightness(1.1);
    }
}

.tagline {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}


.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.lang-btn {
    background: linear-gradient(135deg, #fef7ed, #fce7f3);
    border: 2px solid rgba(244, 114, 182, 0.2);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #8b5cf6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(244, 114, 182, 0.1);
}

.lang-btn:hover {
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.2);
}

.lang-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-btn.active i:last-child {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(244, 114, 182, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(244, 114, 182, 0.2);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 0.5rem;
    overflow: hidden;
}

.lang-dropdown.show,
.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 15px;
    margin: 0.25rem;
    position: relative;
    overflow: hidden;
}

.lang-option:hover {
    background: linear-gradient(135deg, #fce7f3, #e0e7ff);
    color: #8b5cf6;
    transform: translateX(5px);
}

.lang-option.active {
    background: linear-gradient(135deg, #f472b6, #8b5cf6);
    color: white;
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.2rem;
}

.lang-option span:last-child {
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f472b6 0%, #8b5cf6 50%, #06b6d4 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="7" cy="7" r="2"/><circle cx="27" cy="7" r="2"/><circle cx="47" cy="7" r="2"/><circle cx="7" cy="27" r="2"/><circle cx="27" cy="27" r="2"/><circle cx="47" cy="27" r="2"/><circle cx="7" cy="47" r="2"/><circle cx="27" cy="47" r="2"/><circle cx="47" cy="47" r="2"/></g></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    33% { transform: translateX(30px) translateY(-20px); }
    66% { transform: translateX(-20px) translateY(10px); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.security-notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.security-notice i {
    color: #68d391;
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #3182ce;
    color: #3182ce;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3182ce, transparent);
    transition: left 0.5s ease;
}

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

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3182ce;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3182ce;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tool-icon .fa-arrow-right {
    font-size: 1.5rem;
    color: #68d391;
    animation: pulse 2s infinite;
}

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

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.tool-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Features Section */
.features-section {
    background: white;
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.faq-toggle {
    color: #3182ce;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #a0aec0;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #4a5568;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    /* Fix logo heart size on tablet/mobile */
    .logo-heart {
        height: 0.8em !important;
        width: 0.8em !important;
        max-height: 0.8em !important;
        max-width: 0.8em !important;
        min-height: 0.8em !important;
        min-width: 0.8em !important;
        margin-left: 0.25em;
        font-size: inherit !important;
    }
    
    /* Floating animations on tablet - same as desktop */
    .floating-elements {
        /* Keep original opacity */
    }
    
    .float-1, .float-2, .float-3, .float-4, .float-5, 
    .float-6, .float-7, .float-8, .float-9, .float-10, 
    .float-11, .float-12 {
        animation-duration: 30s;
        /* Keep original opacity and size */
    }
    
    .tool-card {
        padding: 1.5rem 1rem;
    }
    
    .tool-icon {
        font-size: 2.5rem;
    }
    
    .tool-title {
        font-size: 1.1rem;
    }
    
    .tool-description {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-filters {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1rem;
    }
    
    .category-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-width: max-content;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Fix logo heart size on mobile */
    .logo-heart {
        height: 0.7em !important;
        width: 0.7em !important;
        max-height: 0.7em !important;
        max-width: 0.7em !important;
        min-height: 0.7em !important;
        min-width: 0.7em !important;
        margin-left: 0.2em;
        font-size: inherit !important;
    }
    
    /* Floating animations on mobile - same as desktop */
    .floating-elements {
        /* Keep original opacity */
    }
    
    /* Keep animations but slightly slower on mobile */
    .float-1, .float-2, .float-3, .float-4, .float-5, 
    .float-6, .float-7, .float-8, .float-9, .float-10, 
    .float-11, .float-12 {
        animation-duration: 35s;
        /* Keep original opacity and size */
    }
    
    .tool-card {
        aspect-ratio: 1.1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tool Card Hide/Show Animation */
.tool-card.hidden {
    display: none;
}

.tool-card.show {
    animation: slideUp 0.5s ease forwards;
}

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


/* Cute Elements */
.cute-icon {
    display: inline-block;
    font-size: 1.1em;
    animation: cuteBounce 2s ease-in-out infinite;
    margin: 0 0.2em;
}

@keyframes cuteBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.hero-title {
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(244, 114, 182, 0.3); }
    100% { text-shadow: 0 0 20px rgba(244, 114, 182, 0.6); }
}

.cute-social {
    display: inline-block;
    font-size: 1.5em;
    transition: transform 0.3s ease;
    filter: brightness(1);
}

.cute-social:hover {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

/* Floating cute elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 2em;
    opacity: 0.6;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.float-1 {
    top: 20%;
    left: 10%;
    animation: floatAround 20s infinite;
}

.float-2 {
    top: 60%;
    left: 85%;
    animation: floatAround 25s infinite reverse;
}

.float-3 {
    top: 10%;
    left: 70%;
    animation: floatAround 30s infinite;
}

.float-4 {
    top: 80%;
    left: 20%;
    animation: floatAround 22s infinite reverse;
}

.float-5 {
    top: 40%;
    left: 5%;
    animation: floatAround 28s infinite;
}

.float-6 {
    top: 25%;
    left: 90%;
    animation: floatAround 35s infinite reverse;
}

.float-7 {
    top: 50%;
    left: 75%;
    animation: floatAround 26s infinite;
}

.float-8 {
    top: 35%;
    left: 30%;
    animation: floatAround 32s infinite reverse;
}

.float-9 {
    top: 65%;
    left: 60%;
    animation: floatAround 24s infinite;
}

.float-10 {
    top: 15%;
    left: 40%;
    animation: floatAround 29s infinite reverse;
}

.float-11 {
    top: 75%;
    left: 80%;
    animation: floatAround 33s infinite;
}

.float-12 {
    top: 45%;
    left: 95%;
    animation: floatAround 27s infinite reverse;
}

@keyframes floatAround {
    0% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translate(50px, -100px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-30px, -50px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translate(-80px, 20px) rotate(270deg);
        opacity: 0.5;
    }
    100% { 
        transform: translate(0, 0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Focus States for Accessibility */
.filter-btn:focus,
.tool-card:focus,
.nav-link:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .tool-card {
        border: 2px solid #000;
    }
    
    .filter-btn {
        border: 2px solid #000;
    }
}

/* PDF Organization Tools Styles */
.file-item[draggable="true"] {
    cursor: move;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5568;
    font-size: 0.875rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover:not(:disabled) {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon.btn-danger {
    border-color: #fed7d7;
    color: #e53e3e;
}

.btn-icon.btn-danger:hover:not(:disabled) {
    background: #fed7d7;
    border-color: #feb2b2;
}

.options {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.options h4 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #2d3748;
}

.option-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.result-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8fafc;
}

.file-details .file-name {
    margin: 0 0 0.25rem 0;
    color: #2d3748;
    font-weight: 500;
}

.file-details .file-size, .file-details .file-meta {
    margin: 0;
    color: #718096;
    font-size: 0.875rem;
}

/* PDF Split Specific Styles */
.split-options, .rotation-controls {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.file-info-section {
    margin-bottom: 2rem;
}

.file-preview {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.file-preview i {
    font-size: 2.5rem;
    color: #e53e3e;
    margin-right: 1rem;
}

.file-details .page-count {
    color: #3182ce;
    font-weight: 500;
    font-size: 0.875rem;
}

.split-methods {
    margin-bottom: 2rem;
}

.method-option {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.method-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.method-option input[type="radio"] {
    margin-right: 0.5rem;
    margin-top: 0.125rem;
}

.method-option p {
    color: #718096;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.range-inputs, .chunk-inputs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.range-input-group, .chunk-input-group {
    margin-bottom: 1rem;
}

.range-input-group label, .chunk-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

.range-input-group input, .chunk-input-group input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
}

.range-input-group small {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.75rem;
}

/* PDF Rotate Specific Styles */
.global-controls {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.rotation-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-preview-section {
    margin-bottom: 2rem;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.page-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.page-preview canvas {
    width: 100%;
    max-width: 150px;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.page-number {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.rotation-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rotation-indicator {
    font-size: 0.75rem;
    color: #3182ce;
    font-weight: 600;
}

/* PDF Security Tools Styles */
.compression-options, .protection-options {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.compression-levels, .password-settings, .permission-settings, .encryption-settings {
    margin-bottom: 2rem;
}

.compression-level-option, .encryption-option {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compression-level-option:hover, .encryption-option:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
}

.compression-level-option input[type="radio"],
.encryption-option input[type="radio"] {
    margin-right: 1rem;
}

.compression-level-option input[type="radio"]:checked + .level-info,
.encryption-option input[type="radio"]:checked {
    color: #3182ce;
}

.compression-level-option:has(input[type="radio"]:checked),
.encryption-option:has(input[type="radio"]:checked) {
    border-color: #3182ce;
    background: #ebf8ff;
}

.level-info {
    flex: 1;
}

.level-info p {
    margin: 0.5rem 0;
    color: #718096;
    font-size: 0.875rem;
}

.level-details {
    margin-top: 0.5rem;
}

.compression-ratio {
    background: #e6fffa;
    color: #38b2ac;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.advanced-options {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.estimation-results {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.size-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.size-before, .size-after {
    text-align: center;
    flex: 1;
}

.size-comparison .label {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.size-comparison .size {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.savings {
    display: block;
    font-size: 0.875rem;
    color: #38a169;
    font-weight: 600;
    margin-top: 0.25rem;
}

.arrow {
    font-size: 1.5rem;
    color: #3182ce;
    font-weight: bold;
}

/* PDF Protection Styles */
.password-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.password-section h4 {
    margin-bottom: 0.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-section p {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.password-input-group {
    position: relative;
    display: flex;
}

.password-input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.btn-toggle-password {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 0.75rem;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s ease;
}

.btn-toggle-password:hover {
    background: #edf2f7;
    color: #2d3748;
}

.password-strength {
    margin-top: 1rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    background: #f56565;
}

.strength-fill.medium {
    background: #ed8936;
}

.strength-fill.strong {
    background: #48bb78;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 600;
}

.strength-text.weak {
    color: #e53e3e;
}

.strength-text.medium {
    color: #dd6b20;
}

.strength-text.strong {
    color: #38a169;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.permission-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.permission-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.permission-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #2d3748;
    font-weight: 500;
}

.permission-option input[type="checkbox"] {
    margin-right: 0.75rem;
}

.permission-option i {
    margin-right: 0.5rem;
    color: #4a5568;
    width: 20px;
}

.encryption-desc {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    font-weight: normal;
    margin-top: 0.25rem;
}

.compression-results, .protection-results {
    text-align: center;
    padding: 2rem;
}

.result-comparison {
    margin-bottom: 2rem;
}

.before-after {
    display: flex;
    justify-content: center;
}

.file-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f0fff4;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #c6f6d5;
}

.result-icon i {
    font-size: 3rem;
    color: #38a169;
}

.result-info {
    text-align: left;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.result-size {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.result-savings {
    font-size: 1rem;
    color: #38a169;
    font-weight: 600;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 200px;
}

.protection-results .result-icon i {
    font-size: 4rem;
    color: #3182ce;
    margin-bottom: 1rem;
}

.summary-item {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    text-align: left;
}

@media (max-width: 768px) {
    .rotation-buttons {
        flex-direction: column;
    }
    
    .page-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .size-comparison {
        flex-direction: column;
        gap: 1rem;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .permission-grid {
        grid-template-columns: 1fr;
    }
    
    .file-result {
        flex-direction: column;
        text-align: center;
    }
    
    .result-info {
        text-align: center;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}