/**
 * SEO Checker Tool - Enhanced Styles
 * Additional modern UI enhancements and animations
 */

/* Advanced CSS Variables - Light Theme with Professional Blue/Green */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    --gradient-danger: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    --gradient-info: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    --gradient-secondary: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    
    /* Professional Blue/Green Theme Colors */
    --primary-blue: #667eea;
    --primary-green: #38ef7d;
    --secondary-blue: #764ba2;
    --secondary-green: #11998e;
    --light-bg: rgba(102, 126, 234, 0.05);
    --light-border: rgba(102, 126, 234, 0.1);
    
    --animation-duration: 0.3s;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] {
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Glass morphism effects */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
}

/* Enhanced button animations */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
    transition: all var(--animation-duration) var(--animation-timing);
}

.btn-enhanced::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;
}

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

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-enhanced:active {
    transform: translateY(-1px);
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--animation-duration) var(--animation-timing);
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Enhanced cards with hover effects */
.card-enhanced {
    transition: all var(--animation-duration) var(--animation-timing);
    border: none;
    box-shadow: var(--shadow-sm);
}

.card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-enhanced .card-header {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
}

/* Animated progress bars */
.progress-animated {
    position: relative;
    overflow: hidden;
    background: var(--bs-gray-200);
    border-radius: 50px;
    height: 12px;
}

.progress-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-bar-animated {
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Score circle enhancements */
.score-circle-enhanced {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.score-circle-enhanced svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-circle-enhanced .circle-bg {
    fill: none;
    stroke: var(--bs-gray-300);
    stroke-width: 8;
}

.score-circle-enhanced .circle-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 628;
    stroke-dashoffset: 628;
    transition: stroke-dashoffset 2s ease-in-out;
}

.score-circle-enhanced .score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-circle-enhanced .score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bs-primary);
    display: block;
    line-height: 1;
}

.score-circle-enhanced .score-label {
    font-size: 0.875rem;
    color: var(--bs-secondary);
    margin-top: 0.5rem;
}

/* Metric cards with icons */
.metric-card-enhanced {
    background: var(--bs-body-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--animation-duration) var(--animation-timing);
    border: 1px solid var(--bs-border-color);
    position: relative;
    overflow: hidden;
}

.metric-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--animation-duration) var(--animation-timing);
}

.metric-card-enhanced:hover::before {
    transform: scaleX(1);
}

.metric-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: all var(--animation-duration) var(--animation-timing);
}

.metric-card-enhanced:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Status indicators with animations */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--animation-duration) var(--animation-timing);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.status-indicator.success {
    background: var(--gradient-success);
    color: white;
}

.status-indicator.warning {
    background: var(--gradient-warning);
    color: white;
}

.status-indicator.danger {
    background: var(--gradient-danger);
    color: white;
}

.status-indicator.info {
    background: var(--gradient-info);
    color: white;
}

.status-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Loading animations */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bs-gray-200) 25%, var(--bs-gray-100) 50%, var(--bs-gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tooltip enhancements */
.tooltip-enhanced {
    position: relative;
    cursor: help;
}

.tooltip-enhanced::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-duration) var(--animation-timing);
    z-index: 1000;
}

.tooltip-enhanced::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--bs-dark);
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-duration) var(--animation-timing);
}

.tooltip-enhanced:hover::before,
.tooltip-enhanced:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Notification system */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform var(--animation-duration) var(--animation-timing);
    z-index: 1050;
    border-left: 4px solid var(--bs-primary);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--bs-success);
}

.notification.warning {
    border-left-color: var(--bs-warning);
}

.notification.danger {
    border-left-color: var(--bs-danger);
}

/* Responsive grid enhancements */
.grid-enhanced {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive elements */
.interactive-element {
    transition: all var(--animation-duration) var(--animation-timing);
    cursor: pointer;
}

.interactive-element:hover {
    transform: scale(1.02);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 4px;
    transition: background var(--animation-duration);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Dark theme scrollbar */
[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bs-gray-800);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
}

/* Print optimizations */
@media print {
    .fab,
    .notification,
    .tooltip-enhanced::before,
    .tooltip-enhanced::after {
        display: none !important;
    }
    
    .card-enhanced {
        box-shadow: none !important;
        border: 1px solid var(--bs-gray-300) !important;
    }
    
    .gradient-text {
        -webkit-text-fill-color: initial;
        color: var(--bs-dark);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card-enhanced,
    .metric-card-enhanced {
        border: 2px solid var(--bs-border-color);
    }
    
    .status-indicator {
        border: 1px solid currentColor;
    }
}

/* Focus management */
.focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

[data-bs-theme="dark"] .border-gradient {
    background: linear-gradient(var(--bs-dark), var(--bs-dark)) padding-box,
                var(--gradient-primary) border-box;
}

/* SEO Tool Specific Enhancements */
.hero-section {
    background: var(--gradient-primary) !important;
}

/* Dark theme hero section background */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1d23 0%, #2d3748 50%, #1e293b 100%) !important;
    border-bottom: 1px solid #374151;
}

[data-bs-theme="dark"] .hero-section::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="darkGrid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23darkGrid)"/></svg>') !important;
    opacity: 0.6;
}

.hover-lift {
    transition: all var(--animation-duration) var(--animation-timing);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.seo-tool-icon {
    transition: all var(--animation-duration) var(--animation-timing);
}

.hover-lift:hover .seo-tool-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Light theme section backgrounds */
body {
    background-color: #fafbfc;
}

.bg-light {
    background-color: var(--light-bg) !important;
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
}

/* Feature icons enhancement */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--animation-duration) var(--animation-timing);
}

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

/* Professional blue/green accent colors */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--secondary-green) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-success {
    background: var(--gradient-success) !important;
}

/* Navbar enhancement */
.navbar-dark.bg-primary {
    background: var(--gradient-primary) !important;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

/* Dark theme navbar background */
[data-bs-theme="dark"] .navbar-dark.bg-primary {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #4b5563;
}

/* Card shadow enhancements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    transition: all var(--animation-duration) var(--animation-timing);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

/* FAQ accordion enhancements */
.accordion-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(56, 239, 125, 0.05) 100%);
    border: none;
    border-radius: 10px !important;
    padding: 1.25rem 1.5rem;
    transition: all var(--animation-duration) var(--animation-timing);
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* Dark mode FAQ text fix for better readability */
[data-bs-theme="dark"] #faqAccordion .accordion-body {
    color: #000000 !important;
    background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="dark"] #faqAccordion .accordion-body * {
    color: #000000 !important;
}

/* Button enhancements */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all var(--animation-duration) var(--animation-timing);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transition: all var(--animation-duration) var(--animation-timing);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Soft gradient overlays */
.bg-gradient {
    background: var(--gradient-primary) !important;
}

/* Image container gradients */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

/* Professional Hero Form Styling */
.hero-form-container {
    max-width: 100%;
    margin: 0 auto;
}

.hero-form-container .form-group-main {
    margin-bottom: 1rem;
}

.hero-form-container .form-label {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.75rem;
    display: block;
    text-align: left;
}

/* Hero Input Group with Inline Button */
.hero-input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: stretch;
}

.hero-input-group:focus-within {
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

.hero-input-group .input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.hero-input-group .form-control {
    border: 2px solid #e9ecef;
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
    flex: 1;
}

.hero-input-group .form-control:focus {
    border-color: #0d6efd;
    box-shadow: none;
    background-color: #fff;
    outline: none;
}

.hero-input-group:focus-within .input-group-text {
    border-color: #0d6efd;
    background-color: #e7f3ff;
    color: #0d6efd;
}

.hero-input-group:focus-within .hero-analyze-btn {
    border-left-color: #0d6efd;
}

/* Inline Analyze Button */
.hero-analyze-btn {
    border-radius: 0 12px 12px 0 !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: 2px solid #0d6efd;
    border-left: 2px solid #e9ecef;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
}

.hero-analyze-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    border-color: #0056b3;
    color: white;
}

.hero-analyze-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.hero-analyze-btn:disabled {
    background: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
}

.hero-form-container .form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Secondary Actions (Recent Button) */
.hero-form-secondary-actions {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.hero-form-secondary-actions .btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #6c757d;
    background-color: transparent;
    color: #6c757d;
}

.hero-form-secondary-actions .btn:hover {
    background-color: #6c757d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

/* Dark theme form styling */
[data-bs-theme="dark"] .hero-form-container .form-label {
    color: #e9ecef;
}

[data-bs-theme="dark"] .hero-input-group .input-group-text {
    background-color: #343a40;
    border-color: #495057;
    color: #adb5bd;
}

[data-bs-theme="dark"] .hero-input-group .form-control {
    background-color: #2d3439;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .hero-input-group .form-control:focus {
    background-color: #2d3439;
    border-color: #0d6efd;
    color: #e9ecef;
}

[data-bs-theme="dark"] .hero-input-group:focus-within .input-group-text {
    background-color: #1a1f23;
    border-color: #0d6efd;
    color: #0d6efd;
}

[data-bs-theme="dark"] .hero-analyze-btn {
    border-left-color: #495057;
}

[data-bs-theme="dark"] .hero-input-group:focus-within .hero-analyze-btn {
    border-left-color: #0d6efd;
}

[data-bs-theme="dark"] .hero-form-container .form-text {
    color: #adb5bd;
}

[data-bs-theme="dark"] .hero-form-secondary-actions .btn {
    border-color: #adb5bd;
    color: #adb5bd;
}

[data-bs-theme="dark"] .hero-form-secondary-actions .btn:hover {
    background-color: #adb5bd;
    color: #212529;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-input-group {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .hero-input-group .input-group-text {
        border-radius: 12px 12px 0 0;
        border-right: 2px solid #e9ecef;
        border-bottom: none;
    }
    
    .hero-input-group .form-control {
        border-left: 2px solid #e9ecef;
        border-right: 2px solid #e9ecef;
        border-top: none;
        border-bottom: none;
        border-radius: 0;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .hero-analyze-btn {
        border-radius: 0 0 12px 12px !important;
        border-left: 2px solid #e9ecef !important;
        border-top: none;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .hero-form-secondary-actions {
        margin-top: 1.5rem;
    }
    
    .hero-form-secondary-actions .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    [data-bs-theme="dark"] .hero-input-group .input-group-text {
        border-color: #495057;
        border-right: 2px solid #495057;
    }
    
    [data-bs-theme="dark"] .hero-input-group .form-control {
        border-color: #495057;
    }
    
    [data-bs-theme="dark"] .hero-analyze-btn {
        border-left-color: #495057 !important;
    }
}

@media (max-width: 576px) {
    .hero-form-container {
        padding: 0 0.5rem;
    }
    
    .hero-analyze-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .hero-form-secondary-actions .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* URL Validation Indicators */
.url-validation-indicators {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.url-validation-indicators.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    color: #6c757d;
    opacity: 0.6;
}

.validation-indicator i {
    font-size: 0.85rem;
}

/* Valid state */
.validation-indicator.valid {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #198754;
    opacity: 1;
    transform: scale(1.02);
}

.validation-indicator.valid i {
    color: #198754;
}

/* Invalid/Pending state */
.validation-indicator.invalid {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    opacity: 1;
    transform: scale(1.02);
}

.validation-indicator.invalid i {
    color: #dc3545;
}

/* Checking/Loading state */
.validation-indicator.checking {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.validation-indicator.checking i {
    color: #ffc107;
    animation: spin 1s linear infinite;
}

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

/* Dark theme support */
[data-bs-theme="dark"] .validation-indicator {
    background-color: #343a40;
    color: #adb5bd;
    border-color: #495057;
}

[data-bs-theme="dark"] .validation-indicator.valid {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
    color: #28a745;
}

[data-bs-theme="dark"] .validation-indicator.valid i {
    color: #28a745;
}

[data-bs-theme="dark"] .validation-indicator.invalid {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

[data-bs-theme="dark"] .validation-indicator.invalid i {
    color: #dc3545;
}

[data-bs-theme="dark"] .validation-indicator.checking {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

[data-bs-theme="dark"] .validation-indicator.checking i {
    color: #ffc107;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .validation-indicator {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .validation-indicator i {
        font-size: 0.8rem;
    }
}

