* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #64748b;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --success-color: #10b981;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.search-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 60px;
    overflow: hidden;
}

.search-container.expanded {
    width: 100%;
    max-width: 600px;
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.search-icon-btn:hover {
    transform: scale(1.1);
}

.search-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}

.search-container.expanded .search-icon {
    stroke: var(--primary-color);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 8px 15px;
    width: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.search-container.expanded .search-input {
    width: 100%;
    opacity: 1;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0);
}

.search-container.expanded .close-btn {
    opacity: 1;
    transform: scale(1);
    display: flex;
}

.close-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

.demo-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.demo-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.demo-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.demo-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.demo-item {
    background: var(--background);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: default;
}

.demo-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.demo-item.highlight {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.results-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    background: var(--background);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 1.1rem;
}

.info-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feature-card {
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instruction-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--background);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.instruction-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.instruction-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.instruction-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }

    .search-container.expanded {
        max-width: 100%;
    }

    .demo-section,
    .results-section,
    .info-section {
        padding: 20px;
    }

    .demo-items {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .instruction-item {
        flex-direction: column;
        text-align: center;
    }
}

