/* Custom CSS for Remove Duplicate Lines Tool */

/* Font and Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Enhanced Color Scheme */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --info-color: #0ea5e9;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Enhanced Navigation Styles */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom navbar toggler */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

.navbar-toggler:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Custom Primary Background */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Enhanced Card Styles */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-light);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: none;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.main-tool-card {
    position: relative;
    overflow: hidden;
}

.main-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

.main-tool-card .card-body {
    position: relative;
    z-index: 2;
}

/* Enhanced Textarea Styles */
.form-control {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    position: relative;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(59, 130, 246, 0.1), var(--shadow-medium);
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.01);
}

#inputText, #outputText {
    resize: vertical;
    min-height: 320px;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 1.25rem;
}

#inputText {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
}

#outputText {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.textarea-container {
    position: relative;
}

.textarea-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.textarea-container:focus-within::before {
    opacity: 1;
}

/* Enhanced Button Styles */
.btn {
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}

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

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    position: relative;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-outline-success,
.btn-outline-secondary {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-success:hover,
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Floating Action Button Style */
.btn-floating {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-floating:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* Hero Section Enhancements */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

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

.hero-stats {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Feature Cards */
.card h5 {
    color: var(--text-primary);
    font-weight: 600;
}

.features-section .card {
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-section .card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.features-section .card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Form Check Styles */
.form-check-input {
    border-radius: 6px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* Enhanced Labels */
.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Processing Options Container */
.bg-light {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(5px);
}

/* Social Share Enhancement */
.social-share .btn {
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-share .btn:hover {
    transform: translateY(-1px) scale(1.05);
}

/* Enhanced Step Numbers */
.step-number {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    font-weight: bold;
}

/* How It Works Section Enhancement */
#how-it-works .bg-primary,
#how-it-works .bg-success,
#how-it-works .bg-info {
    background: var(--gradient-primary) !important;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

#how-it-works .text-center:hover .rounded-circle {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-large);
}

/* Loading Animation Enhancement */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(30, 58, 138, 0.05);
    border-color: var(--border-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

.accordion-item {
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

/* Social Share Buttons */
.btn-success {
    background-color: #25d366;
    border-color: #25d366;
}

.btn-info {
    background-color: #1da1f2;
    border-color: #1da1f2;
}

/* Ad Slot Styling */
.ad-slot {
    border-radius: 8px;
    margin: 2rem 0;
}

/* Enhanced Footer Styles */
footer {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
}

footer h5, footer h6 {
    color: #ffffff !important;
    font-weight: 600;
}

footer p {
    color: #cbd5e1 !important;
}

footer .text-muted {
    color: #94a3b8 !important;
}

footer .social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: #cbd5e1 !important;
}

footer .social-links a:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer .list-unstyled a {
    color: #cbd5e1 !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer .list-unstyled a:hover {
    color: #ffffff !important;
}

footer .text-white {
    color: #ffffff !important;
}

footer hr {
    border-color: #475569 !important;
    opacity: 0.5;
}

/* Footer copyright section */
footer .row.align-items-center p {
    color: #cbd5e1 !important;
}

footer .fas.fa-heart {
    color: #ef4444 !important;
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    #inputText, #outputText {
        min-height: 200px;
    }
    
    .card-body.p-4 {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-group-mobile {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error States */
.alert-custom {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-padding-top: 80px;
}

/* Performance Optimizations */
.card, .btn, .form-control {
    will-change: transform;
}

/* Focus Indicators */
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* Print Styles */
@media print {
    .navbar, .social-share, footer, .ad-slot {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
}
