@font-face {
    font-family: 'Yekan';
    src: url('fonts/Yekan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #1a2b4c;
    --secondary-color: #5fb670;
    --light-bg: #f5f9fc;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e6f0f5 100%);
    font-family: 'Yekan', sans-serif;
    text-align: center;
}

.error-container {
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e7ff;
    animation: fadeIn 0.6s ease-out forwards;
}

.error-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.error-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.error-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.error-message {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-return {
    background-color: var(--secondary-color) !important;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(95, 182, 112, 0.2);
}

.btn-return:hover {
    background-color: #4fa560 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(95, 182, 112, 0.3);
}

.pharmacy-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border-right: 4px solid var(--secondary-color);
    text-align: right;
}

.pharmacy-name {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pharmacy-name i {
    margin-left: 0.5rem;
}

.pharmacy-info {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pharmacy-info i {
    margin-left: 0.5rem;
    color: var(--secondary-color);
}

footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0e1729 100%);
    color: white;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

footer a {
    color: var(--secondary-color) !important;
    transition: all 0.2s ease;
}

footer a:hover {
    color: #4fa560 !important;
    text-decoration: underline !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .error-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .error-icon {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }
}