body {
    font-family: 'Poppins', sans-serif;
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #1a1a1a; /* Dark background */
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23333333' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    color: #f0f0f0;
}

main {
    width: 90%;
    max-width: 420px;
}

h1 {
    text-align: center;
    font-weight: 600;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    font-family: 'Gungsuh', serif;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #2c2c2c;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid #444;
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #555;
    background-color: #333;
    border-radius: 8px;
    color: #f0f0f0;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button[type="submit"] {
    padding: 15px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.3s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.header-container h1 {
    margin-bottom: 0;
    font-size: 2rem;
}

.edit-button {
    padding: 8px 16px;
    background-color: #555;
    color: #fff;
    border: 1px solid #777;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 2rem auto 0;
}

.edit-button:hover {
    background-color: #666;
    transform: translateY(-1px);
}

.link-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #2c2c2c;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid #444;
}

.url-button {
    background: linear-gradient(45deg, #28a745, #218838);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.url-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Daily Thought Container */
#daily-thought-container {
    text-align: center;
    margin-top: 2rem;
    width: 90%;
    max-width: 420px;
    padding: 2.5rem;
    background-color: #2c2c2c;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid #444;
}

#daily-thought-container h2 {
    font-family: 'Gungsuh', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

#daily-thought-container p {
    font-family: 'Gungsuh', serif;
    font-size: 1.2rem;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Utility Classes */
.message-span {
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1.2rem;
}

.message-span.success {
    color: #28a745;
}

.message-span.error {
    color: #dc3545;
}

.hidden {
    display: none;
}
