/* floating help widget - bottom right */
#help-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
#help-widget-btn { min-width: 70px; height: 50px; padding: 0 20px; border-radius: 25px; background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: white; border: 2px solid rgba(255, 255, 255, 0.3); cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 0.2s, box-shadow 0.2s, background 0.2s; display: flex; align-items: center; justify-content: center; }
#help-widget-btn:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); background: linear-gradient(135deg, #45a049 0%, #388e3c 100%); }

/* help panel popup */
.help-panel { position: fixed; bottom: 90px; right: 20px; width: 320px; background: white; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); display: none; z-index: 9998; animation: slideUp 0.3s ease; }
.help-panel.show { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-panel-header { background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); color: white; padding: 16px; border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center; }
.help-panel-header h3 { margin: 0; font-size: 18px; }
.help-close { background: transparent; border: none; color: white; font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s; }
.help-close:hover { background: rgba(255, 255, 255, 0.2); }
.help-panel-body { padding: 20px; }
.help-panel-body p { margin: 0 0 15px 0; font-size: 14px; color: #555; }
.help-actions { display: flex; flex-direction: column; gap: 10px; }
.help-actions button { width: 100%; padding: 12px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.help-actions button:first-child { background: #28a745; color: white; }
.help-actions button:first-child:hover { background: #218838; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.help-actions button:last-child { background: #2196F3; color: white; }
.help-actions button:last-child:hover { background: #0b7dda; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.help-note { margin-top: 12px; font-size: 11px; color: #999; font-style: italic; text-align: center; }

/* slack modal */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); }
.modal-content { background: white; margin: 8% auto; padding: 25px; border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); position: relative; }
.modal-content h3 { margin-top: 0; color: #333; }
.modal-content h4 { margin-top: 0; margin-bottom: 12px; color: #555; font-size: 16px; }
.close { position: absolute; right: 15px; top: 10px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; line-height: 1; }
.close:hover { color: #000; }
.slack-options { display: flex; gap: 20px; margin-top: 20px; }
.quick-send, .channel-link { flex: 1; padding: 15px; background: #f5f5f5; border-radius: 6px; }

#slack-form input, #slack-form textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
#slack-form textarea { min-height: 100px; resize: vertical; }
#slack-form button { width: 100%; padding: 10px; background: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: bold; }
#slack-form button:hover { background: #45a049; }

.channel-link button { width: 100%; padding: 12px; background: #611f69; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: bold; margin-bottom: 10px; }
.channel-link button:hover { background: #4a1850; }
.channel-link p { margin: 0; font-size: 13px; color: #666; text-align: center; }

/* channel name badge (non-clickable) */
.channel-name-badge { display: inline-block; padding: 8px 16px; background: #4a154b; color: white; font-size: 14px; font-weight: 600; border-radius: 20px; font-family: 'Courier New', monospace; letter-spacing: 0.5px; user-select: all; cursor: text; }
.slack-fallback { margin-top: 12px; padding: 12px; background: #f9f4ff; border: 1px solid #e0d4f7; border-radius: 6px; text-align: center; }

/* email modal */
#email-modal .modal-content { max-width: 500px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #333; font-size: 14px; }

#email-form input, #email-form textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 14px; box-sizing: border-box; }
#email-form textarea { min-height: 120px; resize: vertical; }
#email-form button { width: 100%; padding: 12px; background: #2196F3; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: bold; margin-top: 10px; }
#email-form button:hover { background: #0b7dda; }

/* responsive design */
@media (max-width: 600px) {
  .help-panel { width: calc(100% - 40px); right: 20px; }
  .slack-options { flex-direction: column; }
}

