/* Clean Icon Fix - Removes all backgrounds and duplicates */

/* Import FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Remove ALL backgrounds from icon containers */
.tk-editor .tk-bar-icons > div,
.tk-editor .tk-bar-icons > div.tk-btn-attachment,
.tk-editor .tk-bar-icons > div.tk-btn-saved-replies,
.tk-editor .tk-bar-icons > div.tk-btn-audio-clip,
.tk-editor .tk-bar-icons > div.tk-btn-emoji {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 5px !important;
    padding: 0 !important;
}

/* Clean icon styles - no backgrounds, just colored icons */
.tk-editor .tk-bar-icons > div:before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-size: 18px !important;
    line-height: 1 !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transition: all 0.2s ease !important;
}

/* Upload/Attachment - Blue icon only */
.tk-editor .tk-bar-icons > div.tk-btn-attachment:before {
    content: "\f093" !important; /* upload arrow */
    color: #2196F3 !important;
    position: relative !important;
    top: 4px !important; /* Move down more to properly align with other icons */
}
.tk-editor .tk-bar-icons > div.tk-btn-attachment:hover:before {
    color: #1976D2 !important;
    transform: scale(1.2);
}

/* Saved Replies - Green icon only */
.tk-editor .tk-bar-icons > div.tk-btn-saved-replies:before {
    content: "\f086" !important; /* comments */
    color: #4CAF50 !important;
}
.tk-editor .tk-bar-icons > div.tk-btn-saved-replies:hover:before {
    color: #388E3C !important;
    transform: scale(1.2);
}

/* Audio - Red icon only */
.tk-editor .tk-bar-icons > div.tk-btn-audio-clip:before {
    content: "\f130" !important; /* microphone */
    color: #F44336 !important;
}
.tk-editor .tk-bar-icons > div.tk-btn-audio-clip:hover:before {
    color: #D32F2F !important;
    transform: scale(1.2);
}

/* Emoji - Orange icon only */
.tk-editor .tk-bar-icons > div.tk-btn-emoji:before {
    content: "\f599" !important; /* grin */
    color: #FF9800 !important;
}
.tk-editor .tk-bar-icons > div.tk-btn-emoji:hover:before {
    color: #F57C00 !important;
    transform: scale(1.2);
}

/* Send Button - Smaller size, modern gradient with shadow */
.tk-icon-send.tk-submit {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    margin-left: 8px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 10px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.25) !important;
}

/* Remove duplicate icons initially */

/* Send icon - Smaller rocket icon */
.tk-icon-send:before,
.tk-submit.tk-icon-send:before,
div.tk-icon-send.tk-submit:before {
    content: "\f135" !important; /* rocket icon for send */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    font-style: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-size: 15px !important; /* Smaller icon */
    color: white !important;
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.tk-icon-send.tk-submit:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4) !important;
}

.tk-icon-send.tk-submit:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3) !important;
}

/* Remove any other backgrounds from the bar */
.tk-editor .tk-bar {
    background: transparent !important;
    border: none !important;
    padding: 5px !important;
}

/* Ensure icons are visible */
.tk-editor .tk-bar-icons {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Override any conflicting styles */
.tk-editor .tk-bar-icons > div:hover {
    background: rgba(0,0,0,0.05) !important;
    border-radius: 4px !important;
}

/* Fallback text for send button if icon fails */
.tk-icon-send.tk-submit:not(:before) {
    font-size: 0 !important;
}

.tk-icon-send.tk-submit:after {
    content: "➤" !important;
    font-family: sans-serif !important;
    font-size: 20px !important;
    color: white !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 1 !important;
}