/* --- ERROR PAGE LAYOUT --- */
.error-page-wrapper {
    min-height: 80vh; /* Full screen height minus header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f9fbfd;
    padding: 50px 20px;
}

.error-card {
    max-width: 600px;
    width: 100%;
}

/* 3D Illustration Styling */
.error-img {
    max-width: 350px;
    margin: 0 auto 30px;
    animation: float 4s ease-in-out infinite; /* Floating Animation */
}

.error-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Floating Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Typography */
.error-code {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: block;
}

.error-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.error-desc {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Search Box (Optional for 404) */
.error-search {
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.error-search input {
    width: 100%; padding: 12px 20px; border-radius: 50px; border: 1px solid #ddd; outline: none;
}
.error-search button {
    position: absolute; right: 5px; top: 5px; height: 38px; width: 38px;
    border-radius: 50%; border: none; background: var(--secondary); color: white; cursor: pointer;
}

/* Button Group */
.error-actions {
    display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 600px) {
    .error-code { font-size: 3.5rem; }
    .error-title { font-size: 1.5rem; }
    .error-img { max-width: 250px; }
}