/* ========== MAIN CONTROL BUTTONS STYLES ========== */

/* Execute Button (E) - Green color for visual distinction.
   Triggers optimization execution using selected format, chatbot, and tonality; sends API request to backend. */
#execute-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-success);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 18px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

/* Execute button hover state - white with enlarged size for emphasis.
   Indicates this button performs the main action (optimization execution). */
#execute-button:hover  {
    padding: 4px 0px;
    color: var(--icon-hover);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 26px;
    font-style: bold;
    width: 34px;
    height: 34px;

}

/* Stop Button - Red color for stop action.
   Stops the current optimization execution. */
#stop-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-danger);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 19px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

/* Stop button hover state - white with enlarged size.
   Indicates this button performs the stop action. */
#stop-button:hover {
    padding: 4px 0px;
    color: var(--icon-hover);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 26px;
    font-style: bold;
    width: 34px;
    height: 34px;
}


/* Attach Button - For file attachments.
   Allows users to attach files to their prompts. */
#attach-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-primary);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 17px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

#attach-button:hover {
    padding: 4px 0px;
    color: var(--icon-hover);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 25px;
    font-style: bold;
    width: 34px;
    height: 34px;
}


/* White Button - Generic button style.
   Used for various actions throughout the interface. */
#white-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-primary);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 17px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

#white-button:hover {
    padding: 4px 0px;
    /*background-color: rgba(141, 141, 141, 0.301);*/
    color: var(--icon-hover);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 28px;
    font-style: bold;
    width: 34px;
    height: 34px;
}


/* History Button - Opens chat history.
   Displays past conversations and interactions. */
#history-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-primary);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 17px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

#history-button:hover {
    padding: 4px 0px;
    color: var(--icon-hover);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 25px;
    font-style: bold;
    width: 34px;
    height: 34px;
}

/* Profile Button - Opens user profile settings.
   Access to personal information and preferences. */
#profil-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-primary);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 17px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

#profil-button:hover {
    padding: 4px 0px;
    color: var(--icon-hover);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 25px;
    font-style: bold;
    width: 34px;
    height: 34px;
}

/* Settings Button - Opens system settings.
   Configuration and preferences for the application. */
#settings-button {
    padding: 4px 0px;
    background-color: transparent;
    color: var(--icon-primary);
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 17px;
    font-style: bold;
    width: 34px;
    height: 34px;
    transition: all 0.2s ease;
}

#settings-button:hover {
    color: var(--icon-hover);
    padding: 4px 0px;
    border: 0px solid;
    border-radius: 17px;
    cursor: pointer;
    font-size: 25px;
    font-style: bold;
    width: 34px;
    height: 34px;
}



/* ========== TOOLTIP STYLES (For Control Buttons) ========== */

/* Wrapper container for button + tooltip pair with relative positioning.
   Used in index.html to wrap each control button (C, F, T, E) with its tooltip description. */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text box positioned to the right of buttons, centered vertically.
   Hidden by default (opacity: 0, visibility: hidden); shown on parent hover with 1-second fade-in delay. */
.tooltip .tooltiptext {
    position: absolute;
    width: 100px;
    height: auto;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8px;
    padding: 8px 12px;
    background-color: var(--tooltip-bg);
    color: var(--text-primary);
    border: 1px solid var(--tooltip-border);
    border-radius: 6px;
    font-size: 12px;
    white-space: normal;
    max-width: 300px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s 1s;
    box-shadow: 0 4px 12px var(--shadow-primary);
}

/* Hover trigger - shows tooltip when user hovers over the tooltip wrapper.
   1-second delay before opacity change provides subtle UX (user can hover over button without immediate tooltip). */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease 1s, visibility 0s 1s;
}

/* Arrow pointer pseudo-element for tooltip - creates colored triangle pointing left at button.
   Provides visual connection between tooltip and button. */
.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--tooltip-arrow);
}


/* Slightly larger icons for execute and stop buttons */
#execute-button i[data-lucide],
#stop-button i[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Ensure icons inherit button color */
button i[data-lucide] svg {
    color: inherit;
    stroke: currentColor;
}