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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    padding: 0;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.003em;
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0071e3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.github-btn:hover {
    background: #0077ed;
}

.github-btn svg {
    width: 16px;
    height: 16px;
}

.github-btn span {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.demo-container {
    width: 100%;
    max-width: 900px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.window-mockup {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: windowAppear 0.6s ease-out;
}

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

.window-titlebar {
    background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.window-btn.close {
    background: #ff5f57;
}

.window-btn.minimize {
    background: #febc2e;
}

.window-btn.maximize {
    background: #28c840;
}

.window-title {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    flex: 1;
    text-align: center;
}

.window-body {
    display: flex;
    height: 500px;
}

.sidebar {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
    max-width: 0;
    padding: 12px 0;
    border-right: none;
}

.sidebar.collapsed .sidebar-option {
    opacity: 0;
    transform: translateX(-20px);
}

.sidebar-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1d1d1f;
}

.sidebar-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.sidebar-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-option.active {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
}

.sidebar-option span {
    font-size: 14px;
    font-weight: 500;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.button-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.menu-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #86868b;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: #e8e8ed;
    color: #000000;
    cursor: pointer;
}

.dynamic-buttons {
    flex: 1;
    display: flex;
    gap: 8px;
}

.dynamic-btn {
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    color: #0071e3;
    cursor: pointer;
    height: 26px;
    padding: 4px 10px;
    transition: all 0.2s ease;
}

.dynamic-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.status-bar {
    font-size: 11px;
    color: #86868b;
    padding: 4px 8px;
}

.status-bar.loading {
    color: #0071e3;
}

.status-bar.success {
    color: #34c759;
}

.cursor-indicator {
    position: absolute;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.3s ease;
    opacity: 0;
}

.cursor-indicator svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cursor-indicator.active {
    opacity: 1;
}

.cursor-indicator.clicking {
    transform: scale(0.9);
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.home-page {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.home-page.has-results {
    padding: 0;
}

.home-page.has-results .icon-container {
    display: none;
}

.home-page.has-results .search-container {
    padding: 12px 20px;
    order: 2;
    flex: 0 0 auto;
}

.home-page.has-results .results-container {
    order: 1;
    flex: 1;
    padding: 20px;
}

.icon-container {
    display: flex;
    justify-content: center;
    padding: 40px 0 20px 0;
    flex: 1;
    align-items: center;
}

.app-icon {
    animation: float 3s ease-in-out infinite;
}

.app-icon img {
    width: 90px;
    height: 90px;
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.search-container {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.search-box {
    background: #f5f5f7;
    border-radius: 25px;
    padding: 12px 8px 12px 16px;
    width: 100%;
    max-width: 500px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
}

.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    height: 80px;
}

.search-field::placeholder {
    color: #86868b;
}

.search-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
}

.icon-btn {
    width: 37px;
    height: 37px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: #f5f5f7;
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

.clear-btn {
    width: 37px;
    height: 37px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: #f5f5f7;
    transform: scale(1.05);
}

.clear-btn:active {
    transform: scale(0.95);
}

.search-btn {
    width: 37px;
    height: 37px;
    border: none;
    background: #e5e5ea;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #d0d0d5;
    transform: scale(1.05);
}

.search-btn:active {
    background: #c0c0c5;
    transform: scale(0.95);
}

.results-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background: #f5f5f7;
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    background: #ffffff;
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card-content {
    font-size: 48px;
}

.gif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 59, 48, 0.5);
}

.favorites-page {
    padding: 24px;
    overflow-y: auto;
}

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

.settings-page {
    padding: 24px;
    overflow-y: auto;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-row {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-row-title {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
}

.settings-row-subtitle {
    font-size: 13px;
    color: #86868b;
}

.settings-divider {
    padding: 0 20px;
}

.settings-divider::after {
    content: '';
    display: block;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.settings-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5ea;
    transition: 0.3s;
    border-radius: 10px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.settings-toggle input:checked + .toggle-slider {
    background: linear-gradient(to right, #0071e3, #0077ed);
}

.settings-toggle input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.settings-path-row {
    display: flex;
    gap: 12px;
    padding-top: 8px;
}

.settings-path-field {
    flex: 1;
    font-size: 13px;
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 12px;
    height: 32px;
    color: #1d1d1f;
    outline: none;
    transition: all 0.2s ease;
}

.settings-path-field:focus {
    background: #ffffff;
    border-color: #0071e3;
}

.settings-secondary-button {
    font-size: 13px;
    font-weight: 500;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    color: #0071e3;
    cursor: pointer;
    height: 32px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.settings-secondary-button:hover {
    background: #e8e8ed;
}

.settings-about-content {
    padding: 24px 20px;
    text-align: center;
}

.settings-app-name {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.settings-app-version {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 12px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.settings-app-description {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 20px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.feature-item {
    font-size: 13px;
    color: #1d1d1f;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 8px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.settings-app-copyright {
    font-size: 12px;
    color: #86868b;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
    .window-mockup {
        height: 400px;
    }
    
    .sidebar {
        display: none;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-description {
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.project-title {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 12px 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.015em;
}

.project-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #86868b;
    margin: 0 0 60px 0;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.003em;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    background: #f5f5f7;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: scale(1.01);
}

.feature-icon {
    font-size: 56px;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 21px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.003em;
}

.feature-text p {
    font-size: 17px;
    color: #86868b;
    margin: 0;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}
