/* VERSION: 1.00 | MODIFIED: January 09, 2026 */
/* FEATURE: Production release - no style changes */

/* SECTION: Global Styles - Base layout and typography */
/*
 * Purpose: Sets up the overall page layout with modern typography and mobile-friendly design.
 * - Centers content with a **gradient** background.
 * - Uses **Poppins** font for a modern, clean look.
*/
body {
    /* Purpose: Typography and color defaults */
    font-family: 'Poppins', Arial, sans-serif;
    color: #333;
    /* Purpose: Layout and positioning */
    background: linear-gradient(135deg, #F5F6F5 0%, #e0e4e8 100%);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* SECTION: Container Styles - Main content wrapper */
/*
 * Purpose: Styles the main container with a gradient and shadow.
 * - Provides a **card-like** appearance with rounded corners.
 * - Limits width for responsiveness while allowing overflow control.
*/
.container {
    /* Purpose: Appearance and effects */
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    /* Purpose: Layout and sizing */
    padding: 20px;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

/* SECTION: Heading Styles - Title and icon formatting */
/*
 * Purpose: Defines styling for the main h1 heading and its icon.
 * - Centers text with **shadow** for depth.
 * - Uses brand colors for consistency.
*/
h1 {
    /* Purpose: Typography and alignment */
    color: #003087;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h1 i {
    /* Purpose: Icon-specific styling */
    color: #E30613;
    margin-right: 10px;
}

/* SECTION: Form Styles - Input fields and controls */
/*
 * Purpose: Styles form elements with modern, animated effects.
 * - Handles layout for groups, labels, and inputs.
 * - Includes transitions for interactive feedback.
*/
.form-group {
    /* Purpose: Layout positioning */
    margin-bottom: 12px;
    position: relative;
}

label {
    /* Purpose: Layout and alignment */
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    /* Purpose: Typography */
    font-weight: 600;
    color: #003087;
    font-size: 1rem;
}

label i {
    /* Purpose: Icon spacing and color */
    margin-right: 8px;
    color: #E30613;
}

.count {
    /* Purpose: Subtle count display */
    font-size: 0.85rem;
    color: #777;
    font-weight: normal;
}

/* Purpose: Label row with right-aligned controls */
.label-with-controls {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.right-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Purpose: Sort button styling */
.sort-button {
    background: none;
    border: 1px solid #ddd;
    color: #888;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: normal;
    transition: all 0.2s ease;
}

.sort-button:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #555;
}

/* Purpose: Subtle preset selector */
.preset-select {
    background: none;
    border: 1px solid #ddd;
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: normal;
    transition: all 0.2s ease;
}

.preset-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="number"],
textarea {
    /* Purpose: Sizing and borders */
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    /* Purpose: Typography and transitions */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    /* Purpose: Resize and padding adjustment */
    resize: vertical;
    padding-right: 40px;
}

/* Purpose: Consistent placeholder styling */
#names::placeholder,
#teamNames::placeholder,
#numGroups::placeholder,
#membersPerTeam::placeholder,
input::placeholder,
textarea::placeholder {
    font-size: 0.8rem;
    color: #777;
    opacity: 0.6;
}

.textarea-wrapper {
    position: relative;
}

.clear-textarea {
    /* Purpose: Positioning and appearance */
    position: absolute;
    top: 42px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    padding: 4px;
    border-radius: 50%;
    /* Purpose: Interaction */
    cursor: pointer;
    display: none;
    transition: all 0.2s ease;
}

.clear-textarea:hover {
    background: rgba(0,0,0,0.1);
    color: #E30613;
}

.team-names-clear {
    top: 42px;
}

input[type="number"]:focus,
textarea:focus {
    border-color: #003087;
    box-shadow: 0 0 8px rgba(0, 48, 135, 0.3);
    outline: none;
}

/* Purpose: Subtle highlight when auto-quoting occurs */
textarea.auto-quoted {
    animation: autoQuoteGlow 0.8s ease-out;
}

@keyframes autoQuoteGlow {
    0% {
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
        background-color: rgba(0, 123, 255, 0.05);
    }
    100% {
        box-shadow: 0 0 8px rgba(0, 48, 135, 0.3);
        background-color: transparent;
    }
}

/* Purpose: Side-by-side group fields by default */
.horizontal-group {
    display: flex;
    gap: 12px;
}

.half-width {
    flex: 1;
}

/* SECTION: Auto Leader Checkbox - Simple checkbox styling for auto-select option */
/*
 * Purpose: Styles the new auto-select leaders checkbox row.
 * - Keeps everything (checkbox + text + tooltip) on one line.
 * - Matches existing tooltip behavior in labels.
*/
.form-group.auto-leader-option {
    /* Purpose: Spacing adjustments */
    margin-top: 12px;
    margin-bottom: 16px;
}

.form-group.auto-leader-option label {
    /* Purpose: Layout and interaction */
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #003087;
    cursor: pointer;
}

.form-group.auto-leader-option input[type="checkbox"] {
    /* Purpose: Checkbox appearance */
    width: auto;
    margin: 0;
    accent-color: #E30613;
}

.button-group {
    /* Purpose: Layout for buttons */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: stretch;
}

/* SECTION: Button Styles - Action button visuals */
/*
 * Purpose: Defines distinct visual hierarchy for action buttons.
 * - Uses **gradients** and shadows for depth.
 * - Includes hover effects for interactivity.
*/
#generateButton {
    /* Purpose: Appearance */
    background: linear-gradient(90deg, #E30613, #c20510);
    color: #fff;
    border: none;
    border-radius: 8px;
    /* Purpose: Sizing and typography */
    padding: 10px 16px;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    /* Purpose: Interaction */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#generateButton:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.4);
}

#saveNames,
#openNames {
    /* Purpose: Appearance */
    background: linear-gradient(90deg, #003087, #00205b);
    color: #fff;
    border: none;
    border-radius: 8px;
    /* Purpose: Sizing and typography */
    padding: 10px 16px;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    /* Purpose: Interaction */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#saveNames:hover,
#openNames:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 48, 135, 0.4);
}

#clearAll {
    /* Purpose: Appearance */
    background: linear-gradient(90deg, #888, #666);
    color: #fff;
    border: none;
    border-radius: 8px;
    /* Purpose: Sizing and typography */
    padding: 10px 16px;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    /* Purpose: Interaction */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#clearAll:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#helpButton {
    /* Purpose: Appearance */
    background: linear-gradient(90deg, #6699cc, #5588bb);
    color: #fff;
    border: none;
    border-radius: 8px;
    /* Purpose: Sizing and typography */
    padding: 10px 16px;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    /* Purpose: Interaction */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#helpButton:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 153, 204, 0.4);
}

/* SECTION: Custom Tooltips - Info popups on hover/focus */
/*
 * Purpose: Provides accessible, styled tooltips triggered by "?" icons.
 * Key Features:
 * - Uses display:none/block to prevent text leak into layout.
 * - Hidden completely in mobile portrait.
*/
.tooltip {
    /* Purpose: Base appearance and positioning */
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #e0e4e8;
    color: #003087;
    font-size: 0.8rem;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
    z-index: 10;
    /* Purpose: Interaction */
    cursor: help;
    user-select: none;
}

.tooltip:hover,
.tooltip:focus {
    background: #003087;
    color: #fff;
}

.tooltip .tooltip-text {
    /* Purpose: Hidden popup content */
    display: none;
    width: 260px;
    background: rgba(0, 48, 135, 0.95);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 10px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 130%;
    left: 50%;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    pointer-events: none;
    /* Purpose: Animation */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip .tooltip-text::after {
    /* Purpose: Arrow pointer */
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 48, 135, 0.95) transparent transparent transparent;
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
    display: block;
    opacity: 1;
}

/* Desktop alignment */
.tooltip.tooltip-left .tooltip-text { left: 0; }
.tooltip.tooltip-left .tooltip-text::after { left: 12px; margin-left: 0; }
.tooltip.tooltip-right .tooltip-text { left: auto; right: 0; }
.tooltip.tooltip-right .tooltip-text::after { left: auto; right: 12px; margin-left: 0; }

/* Mobile portrait: hide tooltips and presets */
@media (max-width: 480px) and (orientation: portrait) {
    .tooltip,
    #teamNamePresetSelect {
        display: none;
    }
    .horizontal-group {
        flex-direction: column;
        gap: 8px;
    }
    .half-width {
        flex: none;
    }
}

/* General mobile tweaks */
@media (max-width: 600px) {
    #generateButton,
    #clearAll,
    #saveNames,
    #openNames,
    #helpButton,
    #copyResults {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .undo-redo {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* SECTION: Help Modal - Overlay for help content */
/*
 * Purpose: Styles the help modal overlay and content.
 * - Full-screen backdrop with centered content.
 * - Supports scrolling for long content.
*/
.modal {
    /* Purpose: Positioning and backdrop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    /* Purpose: Appearance and sizing */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Purpose: Scrolling and positioning */
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #003087;
    border-radius: 4px;
}

.close-button {
    /* Purpose: Positioning and appearance */
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    /* Purpose: Interaction */
    cursor: pointer;
}

.close-button:hover {
    color: #E30613;
}

.help-section h3 {
    /* Purpose: Typography */
    color: #003087;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.help-section p {
    /* Purpose: Typography and spacing */
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 8px 0;
}

/* SECTION: Changelog Modal - Overlay for version history */
/*
 * Purpose: Styles the changelog modal, reusing help modal patterns.
 * - Full-screen with external content loading.
*/
#changelogModal {
    /* Purpose: Positioning and backdrop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Re-use modal-content styling from help modal */
#changelogModal .modal-content {
    /* Purpose: Appearance and sizing */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Purpose: Scrolling and positioning */
    overflow-y: auto;
    position: relative;
}

/* Footer version link */
#versionLink {
    /* Purpose: Interaction */
    cursor: pointer;
    color: #003087;
    text-decoration: underline;
}

#versionLink:hover {
    color: #E30613;
}

/* SECTION: Output Controls Layout - Post-generation buttons */
/*
 * Purpose: Arranges undo/redo and export controls.
 * - Flexible layout with gaps.
*/
.output-controls {
    /* Purpose: Spacing and alignment */
    margin: 20px 0 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* SECTION: Team Output Styles - Generated team cards */
/*
 * Purpose: Renders team cards with animations and interactions.
 * - Supports drag-and-drop and leader toggles.
 * - Uses transitions for smooth effects.
*/
.teams {
    /* Purpose: Spacing */
    margin-top: 30px;
}

.team {
    /* Purpose: Appearance */
    background: #f8f9fa; /* fallback if JS fails */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Purpose: Spacing and animation */
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
    opacity: 0;
    transform: scale(0.92);
}

.team.show {
    opacity: 1;
    transform: scale(1);
}

.team:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team h3 {
    /* Purpose: Typography */
    color: #003087;
    margin-top: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.member-count {
    /* Purpose: Subtle count */
    color: #E30613;
    font-weight: normal;
}

.team ul {
    /* Purpose: Layout and min sizing */
    list-style: none;
    padding: 0;
    min-height: 40px;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    /* Purpose: Drag feedback */
    transition: background 0.2s ease;
}

.team ul.drag-over {
    background: rgba(0, 48, 135, 0.08);
    border: 2px dashed #003087;
    border-radius: 8px;
}

.team li {
    /* Purpose: Appearance and layout */
    position: relative;
    padding: 10px 12px;
    margin: 6px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Purpose: Interaction */
    cursor: move;
    user-select: none;
    transition: all 0.2s ease;
}

.team li:hover {
    background: #f0f8ff;
    transform: translateX(4px);
}

.team li.dragging {
    opacity: 0.5;
    background: #d0e8ff;
    transform: rotate(4deg);
}

.team li.team-lead {
    font-weight: 700;
    color: #003087;
    background: rgba(0, 48, 135, 0.08);
    border-left: 4px solid #003087;
    order: -1;
}

.lead-toggle {
    /* Purpose: Appearance and animation */
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    /* Purpose: Interaction */
    cursor: pointer;
}

.team li:hover .lead-toggle {
    opacity: 0.7;
}

.team li .lead-toggle:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

.team li.team-lead .lead-toggle {
    opacity: 0.9;
}

/* SECTION: Feedback Messages - Validation and info displays */
/*
 * Purpose: Shows warnings or info with icons and animations.
 * - Fades in for smooth appearance.
*/
.feedback-area {
    /* Purpose: Sizing and spacing */
    min-height: 16px;
    margin: 8px 0 12px;
    font-size: 0.9rem;
}

.feedback-message {
    /* Purpose: Layout and animation */
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.feedback-message.show {
    opacity: 1;
}

.feedback-message i {
    margin-right: 8px;
    font-size: 1.1em;
}

.feedback-message.warning {
    background: rgba(255, 153, 0, 0.15);
    color: #b56700;
    border-left: 4px solid #ff9900;
}

.feedback-message.info {
    background: rgba(0, 123, 255, 0.1);
    color: #004085;
    border-left: 4px solid #007bff;
}

/* SECTION: Footer Styles - Copyright and version info */
/*
 * Purpose: Bottom footer with centered text.
 * - Small font for subtlety.
*/
footer {
    /* Purpose: Alignment and spacing */
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    /* Purpose: Typography */
    font-size: 0.6rem;
    color: #777;
}

footer p {
    margin: 1px 0; /* Keeps the two lines close together */
}

/* SECTION: Dedupe Overlay - Centered info box for duplicate names */
/*
 * Purpose: Displays duplicate names with action buttons when duplicates exist.
 * - Semi-transparent backdrop, centered white box.
 * - Responsive and touch-friendly.
*/
.dedupe-overlay {
    /* Purpose: Positioning and backdrop */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
    pointer-events: none; /* Allows typing when hidden */
}

.dedupe-overlay.active {
    display: flex;
    pointer-events: auto;
}

.dedupe-box {
    /* Purpose: Appearance */
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    /* Purpose: Sizing and alignment */
    max-width: 90%;
    text-align: center;
    font-size: 0.95rem;
}

/* Purpose: Layout for duplicate list and buttons */
.dedupe-box p {
    margin: 0 0 14px;
    color: #333;
}

.dedupe-box strong {
    color: #E30613;
}

#duplicateList {
    color: #003087;
    font-weight: 600;
}

/* Purpose: Button styling */
.dedupe-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.dedupe-primary,
.dedupe-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 120px;
}

.dedupe-primary {
    background: linear-gradient(90deg, #003087, #00205b);
    color: #fff;
}

.dedupe-primary:hover {
    background: linear-gradient(90deg, #00205b, #001540);
}

.dedupe-secondary {
    background: #eee;
    color: #555;
}

.dedupe-secondary:hover {
    background: #ddd;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .dedupe-box {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .dedupe-primary,
    .dedupe-secondary {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 100px;
    }
}

/* SECTION: Responsive Styles - Media queries for smaller screens */
/*
 * Purpose: Adjusts layout and sizing for mobile devices.
 * - Reduces padding and font sizes for better fit.
*/
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.5rem;
    }
    .button-group {
        gap: 8px;
    }
    .output-controls {
        justify-content: center;
    }
    .clear-textarea {
        top: 40px;
        right: 8px;
    }
    .team-names-clear {
        top: 40px;
    }
    .team {
        padding: 15px;
    }
    .team h3 {
        font-size: 1rem;
    }
    .team li {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
    .feedback-message {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .modal-content {
        max-width: 90%;
        padding: 15px;
    }
}

/* SECTION: Share & Export Dropdown - Click-to-toggle with pastel green button */
/*
 * Purpose: Modern, reliable dropdown for export options.
 * - Click button to open/close menu (replaces hover for better UX).
 * - Pastel green button matches app theme.
 * - Smooth fade-in animation and hover effects.
 * - Menu stays open until click outside or option selected.
*/
.dropdown {
    /* Purpose: Positioning */
    position: relative;
    display: inline-block;
}

.share-export-btn {
    /* Purpose: Appearance */
    background: linear-gradient(90deg, #A7E6B7, #8FD3A5); /* Soft pastel green */
    color: #003087; /* Dark blue text for contrast */
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    /* Purpose: Sizing and typography */
    padding: 8px 14px; /* Slightly smaller padding */
    font-size: 0.85rem; /* Smaller font */
    font-weight: 600;
    min-height: 40px; /* Reduced height */
    /* Purpose: Interaction */
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 211, 165, 0.4);
}

.share-export-btn:active {
    transform: translateY(0);
}

.dropdown-content {
    /* Purpose: Appearance and positioning */
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    border-radius: 8px;
    z-index: 20;
    overflow: hidden;
    margin-top: 6px;
    /* Purpose: Animation */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Purpose: Show menu with animation when .show class is added */
.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Purpose: Menu item styling */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

/* Purpose: Hover effect on menu items */
.dropdown-content a:hover {
    background-color: #E8F5E9; /* Light pastel green */
}

/* Purpose: Align output controls vertically */
.output-controls {
    align-items: center;
}