o/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;              /* full page */
    min-height: 100%;          /* extend as content grows */
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #00C9FF 10%, #92FE9D 100%);
    background-attachment: fixed; /* keeps gradient steady while scrolling */
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
    margin: 0;
}

.main-container {
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    max-width: 425px;
    width: 100%;
}

#last-converted-list {
    max-width: 425px;
    max-height: 600px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
}

#last-converted-list .card {
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-block !important;
    width: auto !important;
}

.live-activity {
    margin-top: 2rem;
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
}

.live-activity h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.live-activity ul {
    list-style-type: none;
    padding: 0;
}

.live-activity ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.live-activity ul li a {
    color: #007bff;
    text-decoration: none;
}

.live-activity ul li a:hover {
    text-decoration: underline;
}

.error {
    color: red;
    font-weight: bold;
}

/* Header */
h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 i {
    color: #28a745;
    margin-right: 10px;
}

/* Information Section */
p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Form Section */
#form-section {
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

/* Input Field */
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

input[type="text"]:focus {
    box-shadow: 0 0 10px rgba(0, 183, 255, 0.5);
    border-color: #00b7ff;
    outline: none;
}

/* Button */
button {
    width: 100%;
    padding: 0.75rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button i {
    margin-right: 10px;
}

button:hover {
    background-color: #218838;
}

/* Loader Section */
#loader {
    position: fixed; /* Fixed to cover the entire screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8); /* Dimmed background */
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center; /* Center the spinner */
    z-index: 9999;
}

.spinner {
    display: none; /* This will hide the spinner */
}

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

#loader p {
    margin-top: 1rem;
    font-size: 1rem;
    color: #555;
}

/* Footer */
footer {
    margin-top: 2rem;
}

footer p {
    font-size: 0.8rem;
    color: #777;
}

/* Responsive Design */
@media only screen and (max-width: 600px) {
    .main-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
}
