/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease; /* Add transitions to body for smooth theme changes */
}

.container {
    width: 90%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 25px 30px;
    transition: box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Add transition for container background and text color */
}

.container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-weight: 700;
    font-size: 28px;
    margin: 0;
    color: #333;
}

/* Main Styles */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

form {
    width: 100%;
    margin-bottom: 25px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Transition for form elements */
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Transition for form elements */
}

input[type="text"]::placeholder {
    color: #aaa;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.2);
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Transition for form elements */
}

input[type="submit"]:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Error Message Styles */
#error-message {
    color: red;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* QR Code Styles */
#qrcode {
    margin: 20px 0;
    transition: transform 0.3s ease;
}

#qrcode:hover {
    transform: scale(1.05);
}

#download-tip {
    display: none;
    font-size: 14px;
    color: #888;
}

/* Footer Styles */
#footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

#footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #45a049;
}

/* Theme Icon Styles */
#theme-icon {
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    color: #4CAF50;
    transition: color 0.3s ease, transform 0.3s ease;
}

#theme-icon:hover {
    color: #45a049;
    transform: scale(1.1);
}