:root {
    --primary-color: #4a6bff;
    --background: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --text-secondary: #4a5568;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    margin: 1rem 0;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: #3a56e0;
}

button:active {
    transform: translateY(0);
}

#dataContainer {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#dataContainer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

#dataContainer p:first-child {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 107, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.button-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.button-primary .loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: left;

}




.data-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.item-text {
    display: flex;
    flex-direction: column;
}

.item-link-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.item-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.item-link:hover {
    text-decoration: underline;
}


.data-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-item h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.data-item p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.error-message {
    color: #e53e3e;
    font-weight: 600;
    margin-bottom: 0.5rem;
}



.retry-button {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.retry-button:hover {
    background-color: #c53030;
}



.footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
}

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

@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    #dataContainer {
        padding: 1.5rem;
    }
}