/* Common styles for the website */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 47px;
    height: 80px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    color: white;
    margin: 0;
    font-size: 1.5em;
}

header {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 10px rgba(44, 82, 130, 0.2);
}

nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Center the middle line */
    transition: all 0.3s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: white;
    left: 0;
    /* Align with middle line */
    transition: all 0.3s ease;
}

.nav-toggle-icon::before {
    top: -8px;
    /* Distance from middle line */
}

.nav-toggle-icon::after {
    top: 8px;
    /* Distance from middle line */
}

/* Animation states */
.nav-toggle.active .nav-toggle-icon {
    background-color: transparent;
    /* Hide middle line */
}

.nav-toggle.active .nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}


/* Language selector styles */
.language-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: transparent;
    color: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.language-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.language-select:focus {
    border-color: white;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.language-select option {
    background-color: white;
    color: #2c5282;
}

.language-links {
    text-align: center;
}

.lang-link {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.lang-link:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .logo-container {
        z-index: 1000;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    nav {
        display: none;
        width: 100%;
        background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    nav.active {
        display: flex;
        flex-direction: column;
    }

    nav a {
        width: 100%;
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        text-align: left;
        display: block;
        color: white !important;
        text-decoration: none;
    }

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: #2c5282 !important;
    }

    .language-switcher {
        width: 100%;
        margin-top: 0.5rem;
    }

    .language-select {
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.75rem;
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .language-select option {
        background-color: #2c5282;
        color: white;
    }

    header {
        flex-wrap: wrap;
        padding-bottom: 0.5rem;
    }

    .logo-container {
        flex: 1;
        margin-right: 50px;
    }

    nav * {
        color: white;
    }
}

.main-content {
    max-width: 90%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.number-container {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}


.feature-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 290px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.feature-icon {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-description {
    font-size: 14px;
    color: #7f8c8d;
}

.number-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 275px;
    height: 170px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
}

.number-text {
    width: 100%;
}

.number-text svg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.number-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.number-price {
    color: black;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.number-description {
    color: #4a5568;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.pagination {
    text-align: center;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.logo-link {
    text-decoration: none;
}

.pagination a {
    color: #2c5282;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    margin: 4px;
    border-radius: 4px;
}

.pagination a.active {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    border: 1px solid transparent;
}

.pagination a:hover:not(.active) {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

footer {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Form controls */
.controls {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

#number-filter-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

.submit-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

/* Media Queries remain the same */
@media (max-width: 1480px) {
    .number-container {
        justify-content: space-between;
    }

    .number-box {
        width: 22vw;
    }
}

@media (max-width: 1290px) {
    .number-container {
        justify-content: space-between;
    }

    .number-box {
        width: 24vw;
    }
}

@media (max-width: 950px) {
    #number-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .form-group {
        flex-wrap: wrap;
    }

    .search-bar {
        flex: 1 1 100%;
    }

    .input {
        flex: 1 1 100%;
    }

    select,
    .submit-btn {
        flex: 1 1 auto;
    }

    .number-container {
        justify-content: space-between;
    }

    .number-box {
        width: 22vw;
    }

    .number-text {
        font-size: 2em;
    }
}

@media (max-width: 868px) {
    #number-filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .form-group {
        flex-wrap: wrap;
    }

    .search-bar {
        flex: 1 1 100%;
    }

    .input {
        flex: 1 1 100%;
    }

    select,
    .submit-btn {
        flex: 1 1 auto;
    }

    .number-container {
        justify-content: space-between;
    }

    .number-box {
        width: 35vw;
    }

    .number-text {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 14px;
        height: 24px;
        margin-right: 8px;
    }

    header h1 {
        font-size: 1.2em;
    }
}


@media (max-width: 580px) {
    .number-container {
        justify-content: center;
    }

    .number-box {
        width: 28vw;
    }

    .number-text {
        font-size: 1.5em;
    }
}

h1 span {
    background: linear-gradient(120deg, #f6e05e 0%, #ecc94b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}