/* ==========================================================================
   Greeting Modal Styles - Prefixed to avoid Bootstrap conflicts
   All classes prefixed with .gm- (greeting modal)
   ========================================================================== */

/* CSS Variables */
:root {
    --gm-primary: #0891b2;
    --gm-primary-light: #22d3ee;
    --gm-primary-dark: #0e7490;
    --gm-accent: #f59e0b;
    --gm-surface: #f8fafc;
    --gm-surface-elevated: #ffffff;
    --gm-text-primary: #0f172a;
    --gm-text-secondary: #64748b;
    --gm-text-muted: #94a3b8;
    --gm-border: #e2e8f0;
    --gm-border-light: #f1f5f9;
    --gm-success: #10b981;
    --gm-success-bg: #ecfdf5;
    --gm-success-border: #a7f3d0;
    --gm-danger: #ef4444;
    --gm-danger-bg: #fef2f2;
    --gm-danger-border: #fecaca;
}

/* ==========================================================================
   Modal Structure
   ========================================================================== */

.gm-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

/* Modal Header */
.gm-modal-header {
    background: linear-gradient(135deg, var(--gm-primary) 0%, var(--gm-primary-dark) 100%);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.gm-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gm-modal-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gm-modal-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;

}

.gm-modal-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gm-modal-icon i {
    font-size: 16px;
    color: white;
}

.gm-modal-title-wrap {
    flex: 1;
}

.gm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 2px 0;
    letter-spacing: -0.3px;
}

.gm-modal-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.gm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
    font-size: 12px;
}

.gm-modal-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

/* Modal Body */
.gm-modal-body {
    padding: 0;
    background: var(--gm-surface-elevated);
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.gm-tabs {
    display: flex;
    padding: 14px 20px 0;
    gap: 6px;
    background: var(--gm-surface);
    border-bottom: 1px solid var(--gm-border-light);
}

.gm-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--gm-text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.25s ease;
    position: relative;
}

.gm-tab i {
    font-size: 16px;
}

.gm-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gm-primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.gm-tab:hover {
    color: var(--gm-primary);
    background: rgba(8, 145, 178, 0.05);
}

.gm-tab.active {
    color: var(--gm-primary);
    background: var(--gm-surface-elevated);
}

.gm-tab.active::after {
    transform: scaleX(1);
}

/* Content Area */
.gm-content {
    padding: 20px;
    background: var(--gm-surface-elevated);
}

/* ==========================================================================
   Form Sections
   ========================================================================== */

.gm-form-section {
    margin-bottom: 16px;
}

.gm-form-section:last-child {
    margin-bottom: 0;
}

/* Two Column Grid */
.gm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .gm-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Labels
   ========================================================================== */

.gm-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm-label .gm-required {
    color: var(--gm-danger);
}

/* ==========================================================================
   Tooltips
   ========================================================================== */

.gm-tooltip {
    width: 14px;
    height: 14px;
    min-width: 14px;
    background: var(--gm-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.gm-tooltip i {
    font-size: 8px;
    color: white;
    line-height: 1;
}

.gm-tooltip-text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gm-text-primary);
    color: white;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 10px;
    border-radius: 6px;
    width: 180px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    pointer-events: none;
}

.gm-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gm-text-primary);
}

.gm-tooltip:hover .gm-tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Select Inputs
   ========================================================================== */

.gm-select {
    display: block;
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 2px solid var(--gm-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gm-text-primary);
    background-color: var(--gm-surface-elevated);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-select:hover {
    border-color: var(--gm-primary-light);
}

.gm-select:focus {
    outline: none;
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* ==========================================================================
   Textarea
   ========================================================================== */

.gm-textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gm-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    color: var(--gm-text-primary);
    background: var(--gm-surface-elevated);
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.gm-textarea::placeholder {
    color: var(--gm-text-muted);
}

.gm-textarea:hover {
    border-color: var(--gm-primary-light);
}

.gm-textarea:focus {
    outline: none;
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

/* ==========================================================================
   Character Counter
   ========================================================================== */

.gm-char-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
    font-size: 10px;
    color: var(--gm-text-muted);
}

.gm-char-counter span {
    font-weight: 600;
    color: var(--gm-text-secondary);
}

/* ==========================================================================
   Section Divider
   ========================================================================== */

.gm-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gm-border) 50%, transparent 100%);
    margin: 16px 0;
    border: none;
}

/* ==========================================================================
   Preview Button Wrapper
   ========================================================================== */

.gm-preview-wrapper {
    margin-top: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Preview Button */
.gm-btn-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--gm-primary-light) 0%, var(--gm-primary) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.gm-btn-preview:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    color: white;
}

.gm-btn-preview:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gm-btn-preview i {
    font-size: 10px;
}

.gm-btn-preview-outline {
    background: transparent;
    border: 2px solid var(--gm-primary);
    color: var(--gm-primary);
    box-shadow: none;
}

.gm-btn-preview-outline:hover:not(:disabled) {
    background: rgba(8, 145, 178, 0.05);
    color: var(--gm-primary);
}

/* Action Buttons Container */
.gm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Generate Button */
.gm-btn-generate {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(to right bottom, rgb(8, 175, 214), rgb(44, 157, 190)) !important;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.gm-btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
    color: white;
}

.gm-btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Clear Button */
.gm-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--gm-surface);
    color: var(--gm-text-secondary);
    border: 2px solid var(--gm-border);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-btn-clear:hover {
    background: var(--gm-border-light);
    border-color: var(--gm-text-muted);
    color: var(--gm-text-primary);
}

/* Save Button */
.gm-btn-save {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--gm-success);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-btn-save:hover {
    background: #059669;
    transform: translateY(-1px);
    color: white;
}

/* Regenerate Button */
.gm-btn-regen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: white;
    color: var(--gm-primary);
    border: 2px solid var(--gm-primary);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-btn-regen:hover {
    background: rgba(8, 145, 178, 0.05);
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.gm-loading {
    text-align: center;
    padding: 28px 14px;
}

.gm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gm-border);
    border-top-color: var(--gm-primary);
    border-radius: 50%;
    animation: gm-spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes gm-spin {
    to { transform: rotate(360deg); }
}

.gm-loading-text {
    font-size: 12px;
    color: var(--gm-text-secondary);
    margin: 0;
}

/* ==========================================================================
   Result Card
   ========================================================================== */

.gm-result {
    background: var(--gm-success-bg);
    border: 2px solid var(--gm-success-border);
    border-radius: 20px;
    padding: 16px;
    margin-top: 16px;
    animation: gm-fadeIn 0.4s ease-out;
}

@keyframes gm-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gm-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.gm-result-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--gm-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-result-icon i {
    color: white;
    font-size: 14px;
}

.gm-result-title {
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    margin: 0;
}

.gm-result-actions {
    display: flex;
    gap: 10px;
}

/* Audio Player */
.gm-audio-wrapper {
    background: white;
    border-radius: 50px;
    padding: 10px 10px 4px 10px;
    margin-bottom: 12px;
    
}

.gm-audio-wrapper audio {
    width: 100%;
    height: 38px;
}

/* Message Preview */
.gm-msg-preview {
    background: white;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 14px;
}

.gm-msg-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--gm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.gm-msg-text {
    font-size: 12px;
    color: var(--gm-text-primary);
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Alert Cards
   ========================================================================== */

.gm-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
}

.gm-alert i {
    font-size: 14px;
    flex-shrink: 0;
}

.gm-alert-error {
    background: var(--gm-danger-bg);
    border: 1px solid var(--gm-danger-border);
    color: #991b1b;
}

.gm-alert-success {
    background: var(--gm-success-bg);
    border: 1px solid var(--gm-success-border);
    color: #065f46;
}

/* ==========================================================================
   Upload Zone
   ========================================================================== */

.gm-upload-zone {
    border: 2px dashed var(--gm-border);
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    background: var(--gm-surface);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.gm-upload-zone:hover {
    border-color: var(--gm-primary);
    background: rgba(8, 145, 178, 0.03);
}

.gm-upload-zone.gm-drag-over {
    border-color: var(--gm-primary);
    background: rgba(8, 145, 178, 0.08);
}

.gm-upload-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gm-primary-light) 0%, var(--gm-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.gm-upload-icon i {
    font-size: 20px;
    color: white;
}

.gm-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gm-text-primary);
    margin-bottom: 4px;
}

.gm-upload-hint {
    font-size: 11px;
    color: var(--gm-text-muted);
}

.gm-upload-input {
    display: none;
}

/* File Selected State */
.gm-file-selected {
    background: var(--gm-surface);
    border-radius: 12px;
    padding: 14px;
}

.gm-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gm-file-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--gm-primary-light) 0%, var(--gm-primary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-file-icon i {
    font-size: 16px;
    color: white;
}

.gm-file-details {
    flex: 1;
    min-width: 0;
}

.gm-file-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-file-size {
    font-size: 10px;
    color: var(--gm-text-muted);
    margin-top: 2px;
}

.gm-file-remove {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: none;
    background: var(--gm-danger-bg);
    color: var(--gm-danger);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 11px;
}

.gm-file-remove:hover {
    background: var(--gm-danger);
    color: white;
}

/* ==========================================================================
   Record Controls
   ========================================================================== */

.gm-record {
    text-align: center;
    padding: 14px 0;
}

.gm-record-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gm-record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
}

.gm-record-btn.gm-recording {
    animation: gm-pulse 1.5s ease-in-out infinite;
}

@keyframes gm-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.gm-record-status {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-secondary);
    margin-bottom: 14px;
}

.gm-record-time {
    font-family: 'DM Sans', monospace, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gm-text-primary);
    margin-bottom: 16px;
}

.gm-record-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gm-record-action {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    border: 2px solid var(--gm-border);
    background: white;
    color: var(--gm-text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gm-record-action:hover:not(:disabled) {
    border-color: var(--gm-primary);
    color: var(--gm-primary);
    background: rgba(8, 145, 178, 0.05);
}

.gm-record-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gm-record-action.gm-save {
    background: var(--gm-success);
    border-color: var(--gm-success);
    color: white;
}

.gm-record-action.gm-save:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
}

/* Progress Bar */
.gm-progress {
    height: 4px;
    background: var(--gm-border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.gm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gm-primary) 0%, var(--gm-primary-light) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ==========================================================================
   Utility Classes (prefixed)
   ========================================================================== */

.gm-mt-3 {
    margin-top: 12px;
}

.gm-w-100 {
    width: 100%;
}

.gm-hidden {
    display: none;
}

/* Delete Button */
.gm-btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--gm-danger-bg);
    color: var(--gm-danger);
    border: 2px solid var(--gm-danger);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-btn-delete:hover {
    background: var(--gm-danger);
    color: white;
}


/* Ring group */

/* ==========================================================================
   Ring Group Drag & Drop
   ========================================================================== */

.gm-drag-area {
    min-height: 250px;
    overflow-y: auto;
    background: var(--gm-surface);
    border: 2px dashed var(--gm-border);
    border-radius: 35px;
    padding: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gm-drag-area-selected {
    border-style: solid;
    border-color: var(--gm-success-border);
    background: var(--gm-success-bg);
}

.gm-drag-area.gm-drag-over {
    border-color: var(--gm-primary);
    background: rgba(8, 145, 178, 0.08);
}

.gm-drag-placeholder {
    text-align: center;
    color: var(--gm-text-muted);
    font-size: 12px;
    padding: 40px 20px;
    margin: 0;
}

.gm-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid var(--gm-border);
    border-radius: 50px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.gm-member-item[draggable="true"] {
    cursor: grab;
}
.gm-member-item[draggable="false"] {
    cursor: default;
}

.gm-member-item:hover {
    border-color: var(--gm-primary-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.gm-member-item:active {
    cursor: grabbing;
}

.gm-member-item:last-child {
    margin-bottom: 0;
}

.gm-member-selected {
    border-color: var(--gm-success-border);
    background: white;
}

.gm-member-number {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #39acd4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.gm-member-icon {
    font-size: 24px;
    color: var(--gm-text-muted);
}

.gm-member-icon-selected {
    color: var(--gm-success);
}

.gm-member-info {
    flex: 1;
    min-width: 0;
}

.gm-member-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gm-member-ext {
    font-size: 10px;
    color: var(--gm-text-muted);
}

.gm-member-drag {
    color: var(--gm-text-muted);
    font-size: 12px;
}

.gm-member-remove {
    color: var(--gm-danger);
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.gm-member-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}



/* ==========================================================================
   Checkbox Styling
   ========================================================================== */

.gm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.gm-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--gm-primary);
    cursor: pointer;
}

.gm-checkbox-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--gm-text-primary);
}

/* ==========================================================================
   Destination Tiles
   ========================================================================== */

.gm-dest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 576px) {
    .gm-dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gm-dest-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--gm-surface-elevated);
    border: 2px solid var(--gm-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-dest-tile:hover {
    border-color: var(--gm-primary-light);
    background: rgba(8, 145, 178, 0.03);
}

.gm-dest-tile.hs-selected {
    border-color: var(--gm-primary);
    background: rgba(8, 145, 178, 0.08);
}

.gm-dest-icon {
    font-size: 28px;
    color: var(--gm-primary);
}

.gm-dest-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gm-text-primary);
}

/* ==========================================================================
   Destination Config Panel
   ========================================================================== */

.gm-dest-config {
    margin-top: 16px;
    padding: 16px;
    background: var(--gm-surface);
    border: 1px solid var(--gm-border-light);
    border-radius: 10px;
}

.gm-dest-config-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-primary);
    margin: 0 0 12px 0;
}



/* ==========================================================================
   Business Hours List
   ========================================================================== */

.gm-hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gm-hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gm-surface);
    border: 1px solid var(--gm-border-light);
    border-radius: 8px;
}

.gm-hours-day {
    min-width: 80px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gm-text-primary);
}

.gm-hours-toggle {
    flex-shrink: 0;
}

.gm-hours-times {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-hours-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid var(--gm-border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--gm-text-primary);
    text-align: center;
}

.gm-hours-input:focus {
    outline: none;
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.gm-hours-separator {
    font-size: 12px;
    color: var(--gm-text-muted);
}

.gm-hours-closed {
    flex: 1;
    font-size: 12px;
    color: var(--gm-text-muted);
    font-style: italic;
}


/* Toggle Switch */
.gm-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.gm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gm-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: 0.3s;
    border-radius: 28px;
}

.gm-switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Active/Checked State - Green */
.gm-switch input:checked + .gm-switch-slider {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}



.gm-switch input:checked + .gm-switch-slider:before {
    transform: translateX(24px);
}

/* Hover state */
.gm-switch:hover .gm-switch-slider {
    background-color: #d1d5db;
}

/* Hover state when checked */
.gm-switch:hover input:checked + .gm-switch-slider {
    background-color: #059669;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.gm-alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 20px;
}

.gm-alert {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 40px;
}

.gm-alert-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.gm-alert-close:hover {
  opacity: 1;
}

.gm-alert-error .gm-alert-close {
  color: #dc3545;
}

.gm-alert-success .gm-alert-close {
  color: #28a745;
}

/* ==========================================================================
   Text Input (add this to your existing gm- styles)
   ========================================================================== */
.gm-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--gm-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gm-text-primary);
    background-color: var(--gm-surface-elevated);
    transition: all 0.2s ease;
}
.gm-input::placeholder {
    color: var(--gm-text-muted);
}
.gm-input:hover {
    border-color: var(--gm-primary-light);
}
.gm-input:focus {
    outline: none;
    border-color: var(--gm-primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}
.gm-input:disabled {
    background-color: var(--gm-surface);
    cursor: not-allowed;
    opacity: 0.6;
}