* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
} */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 20px;
    border-radius: 15px;
/*     margin-bottom: 30px; */
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Main Content */
.main-content {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
	margin-top:10px;
}

/* Section Styles */
.section {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
}

/* File Upload */
.file-upload {
    display: flex;
    gap: 10px;
}

.file-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f59e0b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.file-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Textarea Styles */
textarea {
    width: 100%;
    padding: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important; 
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    background: #f8fafc;
}

textarea:focus {
    outline: none !important;
    border-color: #1e40af !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

textarea::placeholder {
    color: #64748b;
}

#outputText {
    background: #f8fafc !important;
    cursor: not-allowed;
}

/* Character Count */
.char-count {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 15px;
}

.char-count strong {
    color: #1e40af;
    font-weight: 700;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* Custom Checkbox */
.option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.option:hover {
    border-color: #4b85e6 !important;
    background: #ffffff !important;
    transform: translateY(-1px);
}

.option input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #64748b !important;
    border-radius: 4px !important;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option input[type="checkbox"]:checked + .checkmark {
    background: #1e40af !important;
    border-color: #1e40af !important;
}

.option input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    top: -3px;
    left: 3px;
}

.option input[type="checkbox"]:checked ~ span:not(.checkmark) {
    color: #1e40af;
    font-weight: 600;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background: #64748b !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: #334155;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Output Actions */
.output-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f59e0b !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.icon {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0px !important;
    }
    
    .header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 35px !important;
    }
    
    .section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .char-count {
        flex-direction: column;
        gap: 8px;
    }
    
    .output-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    textarea {
        font-size: 0.9rem;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f59e0b;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}
