*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.main-header h1 {
    font-size: 2.5rem;
    color: #bb86fc;
    margin-bottom: 1.5rem;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid transparent;
}

.nav-link:hover {
    background-color: #373737;
}

.nav-link.active {
    color: #bb86fc;
    border-color: #bb86fc;
    font-weight: 600;
}

.app-card {
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 2.5rem;
    min-height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.app-content {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.app-content.loading {
    opacity: 0;
}

/* Loader Styles */
.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loader-container.visible {
    opacity: 1;
    visibility: visible;
}

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

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

/* Content Specific Styles */
.content-title {
    font-size: 1.5rem;
    color: #03dac6;
    margin-bottom: 1.5rem;
}

.joke-text, .quote-text {
    font-size: 1.2rem;
    line-height: 1.6;
    min-height: 100px;
}

.quote-author {
    font-size: 1rem;
    font-style: italic;
    color: #cfcfcf;
    margin-top: 1rem;
}

.error-message {
    color: #cf6679;
    font-size: 1.1rem;
}

.action-btn {
    background-color: #bb86fc;
    color: #121212;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.3s, transform 0.2s;
}

.action-btn:hover {
    background-color: #a362f7;
    transform: translateY(-2px);
}

/* Currency Converter Styles */
.converter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 250px;
}

.input-group label {
    font-weight: 600;
    color: #03dac6;
}

.currency-input {
    background-color: #333;
    border: 2px solid #555;
    color: #e0e0e0;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.currency-input:focus {
    border-color: #bb86fc;
}

.conversion-result {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
    color: #e0e0e0;
}

/* Add these new rules to your style.css */

.currency-select {
    background-color: #333;
    border: 2px solid #555;
    color: #e0e0e0;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    width: 100%; /* Make it fill the input-group */
}

.currency-select:focus {
    border-color: #bb86fc;
}

.main-footer {
    margin-top: 2rem;
    color: #777;
}