/* ===== CSS Variables ===== */
:root {
    /* 심리학 기반 컬러 시스템 (기술서 준수) */
    --calm-green: #2A9D8F;
    /* 안정과 치유 - Primary Action */
    --soft-red: #E76F51;
    /* 주의 - Alert (병상 없음, 긴급) */
    --warm-orange: #F4A261;
    /* 확인 필요 - Warning */
    --neutral-bg: #F8F9FA;
    /* 배경 (Black 사용 금지) */
    --gentle-blue: #A8DADC;
    /* 신뢰와 안정 - 보조 색상 */

    /* Legacy Colors - 호환성 유지 */
    --primary: #2A9D8F;
    /* calm-green과 통일 */
    --primary-dark: #21867A;
    --primary-light: #3DB3A3;
    --secondary: #E76F51;
    /* soft-red와 통일 */
    --secondary-dark: #D85A3C;
    --accent: #F4A261;
    /* warm-orange와 통일 */

    /* Status Colors */
    --success: #2A9D8F;
    /* calm-green 사용 */
    --warning: #F4A261;
    /* warm-orange 사용 */
    --error: #E76F51;
    /* soft-red 사용 */
    --info: #A8DADC;
    /* gentle-blue 사용 */

    /* Neutrals */
    --bg-primary: #F8F9FA;
    /* neutral-bg와 통일 */
    --bg-secondary: #ffffff;
    --bg-tertiary: #F1F5F9;
    --text-primary: #2C3E50;
    /* 가독성 높은 다크 그레이 */
    --text-secondary: #64748b;
    --border: #e2e8f0;

    /* Gradients - 심리학 컬러 기반 */
    --gradient-primary: linear-gradient(135deg, #2A9D8F 0%, #21867A 100%);
    --gradient-secondary: linear-gradient(135deg, #E76F51 0%, #D85A3C 100%);
    --gradient-success: linear-gradient(135deg, #2A9D8F 0%, #1F8A7B 100%);
    --gradient-warning: linear-gradient(135deg, #F4A261 0%, #E89050 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(42, 157, 143, 0.3);
    /* calm-green glow */
    --shadow-glow-red: 0 0 20px rgba(231, 111, 81, 0.3);
    /* soft-red glow */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-korean: 'Noto Sans KR', 'Pretendard', sans-serif;
    --font-family: var(--font-family-primary);
    color: var(--text-primary);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-korean);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
.header {
    background:
        radial-gradient(at 27% 37%, hsla(174, 60%, 50%, 0.35) 0px, transparent 50%),
        radial-gradient(at 97% 21%, hsla(14, 70%, 65%, 0.25) 0px, transparent 50%),
        radial-gradient(at 52% 99%, hsla(215, 98%, 61%, 0.2) 0px, transparent 50%),
        linear-gradient(135deg, #2A9D8F 0%, #21867A 100%);
    color: white;
    padding: clamp(2rem, 5vw, 4rem) 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-primary);
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: clamp(3rem, 7vw, 5rem);
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.logo-text {
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    font-weight: 500;
    font-family: var(--font-family-korean);
    letter-spacing: -0.01em;
}

/* ===== Main Content ===== */
.main {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 400px);
}

/* ===== Search Section ===== */
.search-section {
    margin-bottom: var(--spacing-xl);
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all var(--transition-slow);
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(42, 157, 143, 0.1);
}

.section-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    letter-spacing: -0.02em;
}

/* ===== Search Tabs ===== */
.search-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.tab-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 10px 15px -3px rgba(42, 157, 143, 0.2),
        0 4px 6px -2px rgba(42, 157, 143, 0.1);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    box-shadow:
        0 0 20px rgba(42, 157, 143, 0.4),
        0 10px 20px -5px rgba(42, 157, 143, 0.3);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.75rem;
}

.tab-text {
    font-weight: 600;
}

/* ===== Search Form ===== */
.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.input-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Location Input Wrapper with Current Location Button */
.location-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.btn-current-location {
    flex-shrink: 0;
    padding: 0 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

/* Location Search Container */
.location-search-container {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.btn-find-nearby {
    width: 100%;
    padding: 20px var(--spacing-xl);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-find-nearby:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 12px 24px rgba(99, 102, 241, 0.4),
        0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-find-nearby:active {
    transform: translateY(0);
}

.btn-find-nearby.loading {
    background: linear-gradient(90deg, #6366f1 25%, #8b5cf6 50%, #6366f1 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    pointer-events: none;
}

.location-help-text {
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

/* Map Section */
.map-section {
    background: white;
    padding: var(--spacing-xl) 0;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.map-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-toggle-view {
    padding: 10px 16px;
    background: white;
    border: 2px solid #6366f1;
    border-radius: var(--radius-sm);
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-toggle-view:hover {
    background: #6366f1;
    color: white;
}

.kakao-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .kakao-map {
        /* pointer-events 제거하여 지도 인터랙션 활성화 */
        height: 400px;
    }

    .search-input {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3.5rem;
        font-size: 1rem;
        font-family: var(--font-family);
        border: 2px solid var(--border);
        border-radius: var(--radius-md);
        transition: all var(--transition-base);
        background: var(--bg-secondary);
    }

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

    .search-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        background: var(--gradient-primary);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 1rem;
        font-weight: 600;
        font-family: var(--font-family);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-xs);
        transition: all var(--transition-base);
        box-shadow: var(--shadow-md);
    }

    .search-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl), var(--shadow-glow);
    }

    .search-btn:active {
        transform: translateY(0);
    }

    .btn-icon {
        font-size: 1.25rem;
    }

    /* ===== Quick Info ===== */
    .quick-info {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        border-top: 1px solid var(--border);
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        font-size: 0.875rem;
        color: var(--text-secondary);
    }

    .info-item.emergency-number {
        color: var(--error);
        font-weight: 600;
    }

    .info-icon {
        font-size: 1.125rem;
    }

    /* ===== Loading ===== */
    .loading {
        text-align: center;
        padding: var(--spacing-xl);
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
        margin: 0 auto var(--spacing-md);
        border: 4px solid rgba(42, 157, 143, 0.1);
        border-top-color: #2A9D8F;
        border-right-color: #F4A261;
        border-radius: 50%;
        animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        box-shadow: 0 0 20px rgba(42, 157, 143, 0.2);
    }

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

    .loading-text {
        color: var(--text-secondary);
        font-size: 1rem;
    }

    /* ===== Skeleton Loading ===== */
    .skeleton-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
    }

    .skeleton {
        background: linear-gradient(90deg,
                #f0f0f0 0%,
                #e0e0e0 50%,
                #f0f0f0 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s ease-in-out infinite;
        border-radius: 4px;
    }

    @keyframes skeleton-shimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .skeleton-title {
        height: 24px;
        width: 70%;
        margin-bottom: 12px;
    }

    .skeleton-badge {
        height: 20px;
        width: 60px;
        display: inline-block;
        margin-right: 8px;
    }

    .skeleton-text {
        height: 16px;
        width: 100%;
        margin-bottom: 8px;
    }

    .skeleton-text.short {
        width: 40%;
    }

    .skeleton-button {
        height: 48px;
        width: 100%;
        margin-top: 12px;
    }

    /* ===== Results Section ===== */
    .results-section {
        animation: fadeIn 0.5s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .results-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-lg);
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .results-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .results-meta {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }

    .results-count {
        font-size: 0.875rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .sort-options {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        font-size: 0.875rem;
    }

    .sort-select {
        padding: 0.5rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        font-family: var(--font-family);
        cursor: pointer;
    }

    /* ===== Results List ===== */
    .results-list {
        display: grid;
        gap: var(--spacing-md);
    }

    .result-card {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        padding: 20px;
        transition: all var(--transition-slow);
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: hidden;
    }

    .result-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(42, 157, 143, 0.05), transparent);
        transition: left 0.5s;
    }

    .result-card:hover::before {
        left: 100%;
    }

    .result-card:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(42, 157, 143, 0.1);
        border-color: rgba(42, 157, 143, 0.3);
    }

    .result-card:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }

    .result-header {
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .result-name {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0;
        line-height: 1.4;
    }

    .result-badge {
        padding: 0.25rem 0.75rem;
        border-radius: var(--radius-sm);
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .badge-hospital {
        background: #dbeafe;
        color: #1e40af;
    }

    .badge-pharmacy {
        background: #fce7f3;
        color: #be185d;
    }

    .badge-emergency {
        background: #fee2e2;
        color: #991b1b;
    }

    /* ===== Status Badges (Operating Status) ===== */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 12px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .status-open {
        background: #d1fae5;
        color: #065f46;
    }

    .status-closed {
        background: #fee2e2;
        color: #991b1b;
    }

    .status-night {
        background: #dbeafe;
        color: #1e40af;
    }

    .status-emergency {
        background: #fef3c7;
        color: #92400e;
    }

    .distance-badge {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: white;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    /* Distance indicator */
    .distance-badge {
        padding: 4px 10px;
        background: #f1f5f9;
        color: #475569;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
    }

    .result-info {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-md);
    }

    .info-row {
        display: flex;
        align-items: start;
        gap: var(--spacing-xs);
        font-size: 0.875rem;
        color: var(--text-secondary);
    }

    .info-row-icon {
        font-size: 1rem;
        margin-top: 2px;
    }

    /* ===== Operating Hours Notice ===== */
    .operating-hours-notice {
        background: #f8fafc;
        border-left: 4px solid #3b82f6;
        padding: 12px;
        margin: 12px 0 8px 0;
        border-radius: 6px;
        font-size: 13px;
    }

    .operating-hours-title {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 8px;
    }

    .operating-hours-list {
        list-style: none;
        padding: 0;
        margin: 0;
        color: #64748b;
    }

    .operating-hours-list li {
        padding: 4px 0;
        display: flex;
        justify-content: space-between;
    }

    .hours-warning {
        background: #fef3c7;
        border-left: 4px solid #f59e0b;
        margin-top: 8px;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        color: #92400e;
    }

    .emergency-notice {
        background: #fee2e2;
        border-left-color: #ef4444;
    }

    .night-notice {
        background: #dbeafe;
        border-left-color: #3b82f6;
    }

    .result-actions {
        display: flex;
        gap: var(--spacing-sm);
        padding-top: var(--spacing-md);
        border-top: 1px solid var(--border);
    }

    .action-btn {
        flex: 1;
        min-height: 48px;
        padding: 12px 16px;
        border: none;
        border-radius: 8px;
        font-family: var(--font-family);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-base);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-decoration: none;
    }

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

    .action-btn:active {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
    }

    .btn-call {
        background: #10b981;
        color: white;
    }

    .btn-call:hover {
        background: #059669;
    }

    .btn-directions {
        background: #3b82f6;
        color: white;
    }

    .btn-directions:hover {
        background: #2563eb;
    }

    .btn-copy {
        padding: 4px 10px;
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition-fast);
        white-space: nowrap;
    }

    .btn-copy:hover {
        background: #e2e8f0;
        border-color: #cbd5e1;
    }

    .btn-copy.copied {
        background: #d1fae5;
        color: #065f46;
        border-color: #6ee7b7;
    }

    /* ===== Favorite Button ===== */
    .btn-favorite {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        border: none;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: all var(--transition-base);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .btn-favorite:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

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

    .btn-favorite.favorited {
        background: #fee2e2;
    }

    .btn-favorite .heart-icon {
        color: #cbd5e1;
        transition: all var(--transition-base);
    }

    .btn-favorite.favorited .heart-icon {
        color: #ef4444;
        animation: heart-beat 0.3s ease;
    }

    @keyframes heart-beat {

        0%,
        100% {
            transform: scale(1);
        }

        25% {
            transform: scale(1.3);
        }

        50% {
            transform: scale(1.1);
        }
    }

    /* ===== Toast Notifications ===== */
    .toast {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: #1e293b;
        color: white;
        padding: 14px 24px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 10000;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: 90%;
        text-align: center;
    }

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .toast-success {
        background: #10b981;
    }

    .toast-info {
        background: #3b82f6;
    }

    .toast-warning {
        background: #f59e0b;
    }

    .toast-error {
        background: #ef4444;
    }

    /* ===== No Results ===== */
    .no-results {
        text-align: center;
        padding: var(--spacing-xl);
    }

    .no-results-icon {
        font-size: 4rem;
        margin-bottom: var(--spacing-md);
    }

    .no-results-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: var(--spacing-sm);
        color: var(--text-primary);
    }

    .no-results-text {
        color: var(--text-secondary);
    }

    /* ===== Error Message ===== */
    .error-message {
        text-align: center;
        padding: var(--spacing-xl);
        background: var(--bg-secondary);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
    }

    .error-icon {
        font-size: 4rem;
        margin-bottom: var(--spacing-md);
    }

    .error-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: var(--spacing-sm);
        color: var(--error);
    }

    .error-text {
        color: var(--text-secondary);
        margin-bottom: var(--spacing-lg);
    }

    .retry-btn {
        padding: var(--spacing-md) var(--spacing-lg);
        background: var(--primary);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-family: var(--font-family);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-base);
    }

    .retry-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    /* ===== Pagination ===== */
    .pagination {
        display: flex;
        justify-content: center;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xl);
    }

    .page-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--bg-secondary);
        color: var(--text-primary);
        font-family: var(--font-family);
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition-base);
    }

    .page-btn:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .page-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* ===== Footer ===== */
    .footer {
        background: var(--text-primary);
        color: white;
        padding: var(--spacing-lg) 0;
        margin-top: var(--spacing-xl);
    }

    .footer-content {
        text-align: center;
    }

    .footer-text {
        font-size: 0.875rem;
        opacity: 0.8;
        margin-bottom: var(--spacing-xs);
    }

    .footer-copyright {
        font-size: 0.75rem;
        opacity: 0.6;
    }

    /* ===== Responsive Design ===== */
    @media (max-width: 768px) {
        .header {
            padding: var(--spacing-lg) 0;
        }

        .logo {
            font-size: 1.5rem;
        }

        .logo-icon {
            font-size: 2rem;
        }

        .tagline {
            font-size: 1rem;
        }

        .search-tabs {
            grid-template-columns: repeat(2, 1fr);
        }

        .results-header {
            flex-direction: column;
            align-items: flex-start;
        }

        /* Enhanced mobile card design */
        .result-card {
            padding: 16px;
            margin: 0;
        }

        .result-name {
            font-size: 17px;
        }

        .result-actions {
            flex-direction: row;
            gap: 8px;
        }

        .action-btn {
            min-height: 52px;
            font-size: 17px;
        }

        .results-list {
            gap: 12px;
        }

        /* Better info row layout on mobile */
        .info-row {
            flex-wrap: wrap;
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .container {
            padding: 0 var(--spacing-sm);
        }

        .search-card {
            padding: var(--spacing-md);
            border-radius: 8px;
        }

        .tab-btn {
            padding: var(--spacing-sm);
            font-size: 0.8rem;
        }

        .tab-icon {
            font-size: 1.5rem;
        }

        .result-card {
            padding: 16px;
        }

        .result-name {
            font-size: 16px;
        }

        .action-btn {
            font-size: 15px;
            padding: 10px 14px;
        }
    }
}