/* 404 Specific Styles */
.error-container {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 10px 30px rgba(255, 28, 93, 0.2);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.search-404 {
    width: 100%;
    max-width: 500px;
    position: relative;
    margin-bottom: 30px;
}

.search-404 input {
    width: 100%;
    padding: 15px 25px;
    padding-inline-end: 60px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-404 input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-404 button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* RTL handling for button */
[dir="rtl"] .search-404 button {
    left: 10px;
    right: auto;
}

[dir="ltr"] .search-404 button {
    right: 10px;
    left: auto;
}

.search-404 button:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: var(--bg-body);
    border-color: var(--primary);
    color: var(--primary);
}