:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #f43f5e;
    --background: #fafafa;
    --text: #1f2937;
    --text-light: #4b5563;
    --border: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --surface: #ffffff;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    margin: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    position: relative;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100% !important;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: 60px !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
    max-width: 100% !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.nav-link.cta:hover {
    transform: translateY(-2px);
}

/* Main Content */
main {
    padding: 76px 0 100px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Wizard Container */
.wizard-container {
    background: var(--surface);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: calc(100% - 40px);
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
}

.wizard-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    text-align: center;
}

.wizard-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.wizard-header p {
    font-size: 1.1rem;
    margin: 0 0 2rem;
    opacity: 0.9;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin: 2rem auto 0;
    max-width: 700px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: white;
    color: var(--primary);
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Wizard Content */
.wizard-content {
    padding: 2rem;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-content {
    max-width: 700px;
    margin: 0 auto;
}

.step-content h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Grid Layouts */
.sources-grid,
.categories-grid,
.filters-grid,
.settings-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Form Elements */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: var(--text-light);
    pointer-events: none;
}

.input-group input:focus ~ .floating-label,
.input-group input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary);
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.helper-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
}

/* Buttons */
.wizard-footer {
    background: var(--surface);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    background: var(--success);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}
.mobile-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}
/* Mobile Styles */
@media (max-width: 768px) {
    .wizard-container {
        margin: 10px auto;
        width: calc(100% - 20px);
        border-radius: 16px;
    }

    .wizard-header {
        padding: 1.5rem 1rem;
    }

    .wizard-header h1 {
        font-size: 2rem;
    }

    .stepper {
        margin-top: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .wizard-content {
        padding: 1.5rem 1rem;
    }

    .wizard-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        min-height: 200px;
        background-color: var(--surface);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        display: none;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 0.5rem;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-link.cta {
        margin: 0.5rem 1rem;
        width: auto;
    }

    /* Mobile menu button styles */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--text);
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .mobile-menu-button:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-button:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .mobile-menu-button svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
    }

    #mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .wizard-header h1 {
        font-size: 1.75rem;
    }

    .step-label {
        display: none;
    }
}

/* Footer Styles */
footer {
    background: #1f2937;
    color: white;
    padding: 80px 0 40px;
    max-width: 100% !important;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Animation styles */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
  }
  
  @keyframes ripple {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }
  
  .shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
  }
  
  @keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
  }
  
  .pulse {
    animation: pulse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .loading-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .loading-spinner svg {
    animation: rotate 2s linear infinite;
  }
  
  .loading-spinner circle {
    stroke-dasharray: 150,200;
    stroke-dashoffset: -10;
    animation: dash 1.5s ease-in-out infinite;
  }
  
  @keyframes rotate {
    100% { transform: rotate(360deg); }
  }
  
  @keyframes dash {
    0% {
      stroke-dasharray: 1,200;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 89,200;
      stroke-dashoffset: -35;
    }
    100% {
      stroke-dasharray: 89,200;
      stroke-dashoffset: -124;
    }
  }
  
  .progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    border-radius: 2px;
    overflow: hidden;
  }
  
  .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    border-radius: 2px;
  }
  
  /* Additional Phase 3 styles */
  .validating {
    animation: pulse 0.3s ease-in-out;
  }
  
  .valid {
    border-color: var(--success) !important;
  }
  
  .invalid {
    border-color: var(--error) !important;
  }
  
  .input-group {
    position: relative;
    transition: all 0.3s ease;
  }
  
  .input-group:focus-within {
    transform: translateY(-2px);
  }
  
  .checkbox-label {
    transition: all 0.3s ease;
  }
  
  .checkbox-label:hover {
    transform: translateY(-2px);
  }
  .input-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 1px #ef4444;
  }
  
  .input-group.success input {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981;
  }
  
  .input-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
  
  .input-feedback.error {
    color: #ef4444;
  }
  
  .input-feedback.success {
    color: #10b981;
  }

  .toast {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px);
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 1px solid #f87171;
    color: #991b1b;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 500;
  }

  .toast.show {
    opacity: 1;
    transform: translateY(0);
    animation: toast-bounce 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes toast-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  
  .toast.opacity-100 {
    opacity: 1;
  }
  
  .toast.opacity-0 {
    opacity: 0;
  }

/* Source Groups Styling */
.sources-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.source-group {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.source-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(0, 0, 0, 0.15);
}

.source-group-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.source-group-header::before {
    content: "\f1ea"; /* FontAwesome newspaper icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.25rem;
}

.source-group-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.source-options {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Source Cards */
.source-card {
    position: relative;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.source-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.source-card-content {
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.source-card:hover .source-card-content {
    border-color: #6366f1;
    background: #eef2ff;
}

.source-name {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.3s ease;
}

.source-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.source-input:checked + .source-card-content {
    border-color: #6366f1;
    background: #eef2ff;
}

.source-input:checked + .source-card-content .source-name {
    color: #4f46e5;
}

.source-input:checked + .source-card-content .source-check {
    transform: scale(1);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Sources Counter */
.sources-counter {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(100px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.sources-counter.visible {
    transform: translateY(0);
}

.counter-number {
    font-weight: 600;
    font-size: 1.125rem;
}

.counter-text {
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .source-options {
        grid-template-columns: 1fr;
    }
    
    .sources-counter {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }
}

/* Categories Section Styling */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-group {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-group:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-main {
    border-bottom: 1px solid #e5e7eb;
}

/* Category Card Styling */
.category-card {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.category-input {
    position: absolute;
    opacity: 0;
}

.category-card-content {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.3s ease;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

.category-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-input:checked + .category-card-content {
    background: #eef2ff;
}

.category-input:checked + .category-card-content .category-name {
    color: #4f46e5;
}

.category-input:checked + .category-card-content .category-check {
    transform: scale(1);
}

/* Subcategories Styling */
/* Fix for subcategories container */
.subcategories-container {
    display: none;  /* Initially hide all subcategories */
    padding: 0.5rem;
    background: #f9fafb;
}

.subcategories-container.expanded {
    display: block;  /* Show when category is selected */
}

.subcategories-container > * {
    overflow: hidden;
}

.subcategory-card {
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.subcategory-input {
    position: absolute;
    opacity: 0;
}

.subcategory-card-content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.subcategory-name {
    font-size: 0.975rem;
    color: #6b7280;
}

.subcategory-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subcategory-input:checked + .subcategory-card-content {
    background: #eef2ff;
}

.subcategory-input:checked + .subcategory-card-content .subcategory-name {
    color: #4f46e5;
}

.subcategory-input:checked + .subcategory-card-content .subcategory-check {
    transform: scale(1);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-card-content,
    .subcategory-card-content {
        padding: 1rem;
    }
}
.subcategories-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.select-all-btn {
    font-size: 0.875rem;
    color: #6366f1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.select-all-btn:hover {
    background: #eef2ff;
}

/* Filters Section Styling */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.filter-group:hover {
    transform: translateY(-2px);
}

.filter-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.filter-select-all {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-select-all:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-options {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-option {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.filter-input {
    position: absolute;
    opacity: 0;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.filter-name {
    font-size: 0.875rem;
    color: #4b5563;
    transition: color 0.3s ease;
}

.filter-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover and Selected States */
.filter-option:hover .filter-chip {
    border-color: #6366f1;
    background: #eef2ff;
}

.filter-input:checked + .filter-chip {
    border-color: #6366f1;
    background: #eef2ff;
}

.filter-input:checked + .filter-chip .filter-name {
    color: #4f46e5;
}

.filter-input:checked + .filter-chip .filter-check {
    transform: scale(1);
}

/* Ripple Effect */
.filter-option {
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Settings Section Styling */
/* Main container for settings */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

/* Input group container */
.input-group {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Input field */
.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: transparent;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Hide placeholder */
.input-group input::placeholder {
    color: transparent;
}

/* Focus state */
.input-group input:focus {
    outline: none;
    border-color: #6366f1;
}

/* Floating label */
.floating-label {
    position: absolute;
    left: 2.5rem;
    top: 2.5rem;
    font-size: 1rem;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top; /* Add this to control scaling point */
}

/* Label animation when input has content or focus */
.input-group input:focus ~ .floating-label,
.input-group input:not(:placeholder-shown) ~ .floating-label {
    transform: scale(0.85) translateY(-0.8rem); /* Use transform scale instead of font-size */
    color: #6366f1;
}

/* Helper text */
.helper-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 1rem;
}

/* Number input specific */
.input-group input[type="number"] {
    -moz-appearance: textfield;
}

.input-group input[type="number"]::-webkit-inner-spin-button,
.input-group input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    opacity: 1;
    border-left: 1px solid var(--border);
    cursor: pointer;
    display: block;
    height: 50%;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    width: 2rem;
}

.input-group input[type="number"]::-webkit-inner-spin-button {
    top: 0;
}

.input-group input[type="number"]::-webkit-outer-spin-button {
    bottom: 0;
}

/* Validation States */
.input-group.success input {
    border-color: #10b981;
}

.input-group.success .floating-label {
    color: #10b981;
}

.input-group.error input {
    border-color: #ef4444;
}

.input-group.error .floating-label {
    color: #ef4444;
}

/* Input Feedback */
.input-feedback {
    position: absolute;
    left: 1.5rem;
    bottom: -1.25rem; /* Positioned below the input */
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.input-group.error .input-feedback {
    color: #ef4444;
    opacity: 1;
}

.input-group.success .input-feedback {
    color: #10b981;
    opacity: 1;
}

/* Validation Animation */
.input-group.validating input {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Focus Animation */
.input-group:focus-within {
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .settings-grid {
        padding: 0.5rem;
    }

    .input-group {
        padding: 1rem;
    }

    .input-group input {
        padding: 0.75rem;
    }

    .floating-label {
        left: 1.5rem;
        top: 1.75rem;
    }

    .input-group input:focus ~ .floating-label,
    .input-group input:not(:placeholder-shown) ~ .floating-label {
        left: 1.5rem;
    }

    .input-feedback {
        left: 1rem;
    }
}
#result {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #10b981;  /* Success green color */
    color: white;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 1.125rem;
    min-width: 400px;
    text-align: center;
    display: none;  /* Hide by default */
}