/* Ensure new elements are styled consistently */
body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    position: relative;
    max-width: 800px;
    margin: auto;
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

h1 {
    margin-top: 0;
    text-align: center;
    color: #ffeb3b;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInDown 1s ease-in-out;
}

.icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    animation: slideInDown 1s ease-in-out;
}

.form-group {
    margin-bottom: 15px;
    animation: fadeIn 1s ease-in-out;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ffeb3b;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out;
}

input, select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2c2c2c;
    color: #e0e0e0;
    transition: background-color 0.3s, border-color 0.3s;
    animation: fadeIn 1s ease-in-out;
}

input:focus, select:focus {
    border-color: #ffeb3b;
}

.email-output {
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
}

#emailPreview {
    background: #2c2c2c;
    padding: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    white-space: pre-wrap;
    color: #e0e0e0;
    transition: background-color 0.3s, border-color 0.3s;
    animation: fadeIn 1s ease-in-out;
}

#copyButton {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-weight: bold;
    background: #ffeb3b;
    color: #1e1e1e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    animation: fadeIn 1s ease-in-out;
}

#copyButton:hover {
    background: #e0c700;
    color: #121212;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Styling for dynamic subcategories */
#dynamic-subcategories select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2c2c2c;
    color: #e0e0e0;
    transition: background-color 0.3s, border-color 0.3s;
    animation: fadeIn 1s ease-in-out;
}

#dynamic-subcategories select:focus {
    border-color: #ffeb3b;
}

/* Version indicator circle */
.version-circle {
    margin-top: 20px;
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffeb3b;
    color: #1e1e1e;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-weight: bold;
    animation: fadeIn 1s ease-in-out;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    font-weight:normal;
    visibility: hidden;
    width: 120px;
    background-color: #1e1e1e;
    color: #ffeb3b;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: -50%;
    left: 150%;
    opacity: 0;
    transition: opacity 0.3s;
    font-style: italic;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Author text */
.tip {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #ffeb3b;
    font-style: italic;
    animation: fadeIn 1s ease-in-out;
}