.user-initials {
    cursor: pointer;
}

.iconlink {
    line-height: 0px;
}

.filter-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #5062ff;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    z-index: 9999;
    display: none;
    font-family: "Montserrat", sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix for objectives dropdown shift - remove 15px bottom margin */
.parent-item-form.gridspot.w-form,
.parent-item-form.form-parent-item-65436.gridspot.w-form,
.parent-item-form[class*="form-parent-item-"].gridspot.w-form,
.parent-item-form.form-parent-item-item_id.gridspot.w-form {
    margin-bottom: 0 !important;
}

/* Additional fix for any remaining margin-bottom issues */
.parent-item-form[class*="form-parent-item-"] {
    margin-bottom: 0 !important;
}

/* Objective owner icon dropdown styles */
.onjective-ower-icon {
    position: relative;
    cursor: pointer;
}

.js-objective-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.js-objective-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Ensure dropdown appears above other elements */
.onjective-ower-icon.boardmacro .js-objective-dropdown,
.onjective-ower-icon.gridspot.boardmacro .js-objective-dropdown {
    z-index: 1001;
}

/* Fix overflow issue for gridspot elements */
.onjective-ower-icon.gridspot {
    overflow: visible !important;
}

.onjective-ower-icon.gridspot .js-objective-dropdown {
    overflow: visible !important;
}

/* Fix overflow issue for objective-title */
.objective-title {
    overflow: visible !important;
}

/* Fix overflow issue for objective-module */
.objective-module.swot-goal.tight {
    overflow: visible !important;
}

/* Key Result dropdown styles */
.key-result-description {
    cursor: pointer;
}

.key-result-container {
    position: relative;
    overflow: visible !important;
}

.key-result-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:hover {
    background-color: #f8fafc;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Status color dropdown styles */
.key-result-status-dropdown {
    margin-left: auto;
    position: relative;
}

.key-result-status-toggle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 1px solid #cbd5e0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.key-result-status-toggle:hover {
    border-color: #a0aec0;
}

.key-result-status-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 120px;
    z-index: 10001;
    margin-top: 4px;
}

.status-option {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
}

.status-option:last-child {
    border-bottom: none;
}

.status-option:hover {
    background-color: #f7fafc;
}

.status-option .status-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* Score input styles */
.key-result-score-input {
    margin-left: auto;
    width: 40px;
    height: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    padding: 2px 4px;
    font-family: "Montserrat", sans-serif;
    transition: border-color 0.15s ease;
}

.key-result-score-input:focus {
    outline: none;
    border-color: #5062ff;
    box-shadow: 0 0 0 2px rgba(80, 98, 255, 0.1);
}

/* Ensure dropdown appears above other elements for different formats */
.key-result-container.boardmacro .key-result-description-dropdown,
.key-result-container.gridspot.boardmacro .key-result-description-dropdown {
    z-index: 10000;
}

/* Fix overflow issue for gridspot elements */
.key-result-container.gridspot {
    overflow: visible !important;
}

.key-result-container.gridspot .key-result-description-dropdown {
    overflow: visible !important;
}

/* Fix overflow issue for key-result-box */
.key-result-box {
    overflow: visible !important;
}

/* Additional overflow fixes for parent containers */
.objective-module {
    overflow: visible !important;
}

.swot-goal {
    overflow: visible !important;
}

.plan-module {
    overflow: visible !important;
}

/* Show item form when it has the 'show-form' class */
.item-form.jnk.boardmacro.w-form.show-form,
.item-form.jnk.gridspot.w-form.show-form {
    display: block !important;
}

/* Score Slider Styles */
.key-result-score-slider {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

/* Slider Track */
.key-result-score-slider::-webkit-slider-track {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    border: none;
}

.key-result-score-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    border: none;
}

/* Slider Thumb */
.key-result-score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #5062ff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.key-result-score-slider::-webkit-slider-thumb:hover {
    background: #3B4CF5;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.key-result-score-slider::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #5062ff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.key-result-score-slider::-moz-range-thumb:hover {
    background: #3B4CF5;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Focus states */
.key-result-score-slider:focus {
    outline: none;
}

.key-result-score-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(80, 98, 255, 0.1);
}

.key-result-score-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(80, 98, 255, 0.1);
}

/* Active state */
.key-result-score-slider:active::-webkit-slider-thumb {
    background: #3B4CF5;
    transform: scale(1.15);
}

.key-result-score-slider:active::-moz-range-thumb {
    background: #3B4CF5;
    transform: scale(1.15);
}

/* Score display styling */
.score-display {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #2d3748;
    user-select: none;
}

/* Score slider container */
.score-slider-container {
    min-width: 140px;
}

/* Status Color Options - Responsive Design */
.status-color-options {
    display: flex;
    gap: 6px;
    align-items: center;
}

.color-option {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.color-option.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Mobile responsive - larger circles for touch */
@media (max-width: 768px) {
    .status-color-options {
        gap: 8px !important;
    }
    
    .color-option {
        width: 20px !important;
        height: 20px !important;
    }
    
    .color-option:hover {
        transform: scale(1.1) !important;
    }
}

/* Extra large for very small mobile screens */
@media (max-width: 480px) {
    .status-color-options {
        gap: 10px !important;
    }
    
    .color-option {
        width: 24px !important;
        height: 24px !important;
        border-width: 3px !important;
    }
    
    .color-option:hover {
        transform: scale(1.05) !important;
    }
    
    /* Mobile score slider sizing */
    .key-result-score-slider {
        height: 8px !important;
        min-height: 8px !important;
    }
    
    /* Mobile score slider thumb */
    .key-result-score-slider::-webkit-slider-thumb {
        width: 24px !important;
        height: 24px !important;
    }
    
    .key-result-score-slider::-moz-range-thumb {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Tablet score slider sizing */
@media (min-width: 481px) and (max-width: 768px) {
    .key-result-score-slider {
        height: 6px !important;
        min-height: 6px !important;
    }
    
    .key-result-score-slider::-webkit-slider-thumb {
        width: 20px !important;
        height: 20px !important;
    }
    
    .key-result-score-slider::-moz-range-thumb {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Tablet responsive - medium circles */
@media (min-width: 769px) and (max-width: 1024px) {
    .status-color-options {
        gap: 7px;
    }
    
    .color-option {
        width: 16px;
        height: 16px;
    }
}

/* Dropdown item hover effects */
.dropdown-item:hover {
    background-color: #f8fafc;
}

/* Compact dropdown styling */
.key-result-dropdown {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.dropdown-item {
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Remove borders from Results and Discuss items */
.dropdown-item:nth-child(3),
.dropdown-item:nth-child(5) {
    border-bottom: none;
}

/* Icon styling for dropdown items */
.dropdown-item i {
    font-size: 12px;
    color: #2d3748;
    transition: color 0.15s ease;
}

.dropdown-item:hover i {
    color: #374151;
}

/* Icon container styling */
.dropdown-item .icon-container {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

/* AI Icon Gradient Effect */
.ai-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.1) saturate(1.2);
        transform: scale(1.05);
    }
}

/* Hover effect for AI icon */
.dropdown-item:hover .ai-icon {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sparkle-hover 1.5s ease-in-out infinite;
}

@keyframes sparkle-hover {
    0%, 100% { 
        filter: brightness(1.1) saturate(1.3);
        transform: scale(1.05);
    }
    50% { 
        filter: brightness(1.2) saturate(1.4);
        transform: scale(1.1);
    }
}

/* Ensure AI icon container doesn't interfere with gradient */
.dropdown-item .icon-container .ai-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dropdown-item:hover .icon-container .ai-icon {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 50%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 

/* Mobile override for key-result-area overflow */
@media screen and (max-width: 479px) {
    .key-result-area {
        overflow: visible !important;
    }

    /* Mobile dropdown item font size */
    .dropdown-item {
        font-size: 16px !important;
    }
    
    /* Mobile save item button font size */
    .plan-add-button.save-item-button {
        font-size: 16px !important;
    }
} 

/* Updated Save Item Button Styles */
.plan-add-button.save-item-button {
    background-color: #5062ff;
    border-style: solid;
    border-color: #0000;
    border-radius: 8px;
    width: auto;
    height: 32px;
    max-height: 32px;
    margin-top: 0;
    padding: 0 20px;
    font-family: Montserrat, sans-serif;
    font-size: 13.8px;
    line-height: 12px;
} 

/* Updated Objective Save Button Styles */
.plan-add-button.objective-save {
    background-color: #5062ff;
    border-style: none;
    border-color: #ffffff7d;
    border-radius: 8px;
    width: auto;
    height: 30px;
    max-height: 30px;
    margin-top: 0;
    margin-left: 0;
    padding: 0 16px;
} 

/* Fix for thicker Font Awesome icons */
.fas.fa-edit {
  font-weight: 400 !important;
}

.fas.fa-chart-line {
  font-weight: 400 !important;
}

.fas.fa-chart-bar {
  font-weight: 400 !important;
} 

/* Chat more dropdown back styles */
.chat-more-drop-back.w--open {
    z-index: 9999999;
    clear: none;
    border: 1px solid var(--line-3);
    text-align: left;
    object-fit: fill;
    background-color: #fff;
    border-radius: 8px;
    width: 255px;
    min-width: 210px;
    max-width: 210px;
    min-height: auto;
    margin-right: 15px;
    padding-top: 8px;
    padding-bottom: 3px;
    position: absolute;
    top: -26px;
    left: -215px;
    right: 0;
    overflow: visible;
    box-shadow: 1px 5px 15px #2b2c3114;
}

/* Chat options styling to match key result dropdown */
.chat-options-link {
    display: flex !important;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.15s ease;
    border-radius: 4px;
    margin: 2px 8px;
    width: 100%;
    box-sizing: border-box;
}

.chat-options-link:hover {
    text-decoration: none;
}

.chat-options-link .icon-container {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.chat-options-link .icon-container i {
    font-size: 12px;
    color: #2d3748;
}

.chat-options-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    flex: 1;
}

/* Override chat-drop-option-link to ensure block display */
.chat-drop-option-link {
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-radius: 4px;
}

.chat-drop-option-link:hover {
    background-color: #f8fafc;
}

.chat-drop-option-link.message-reply-bottom,
.chat-drop-option-link.message-edit,
.chat-drop-option-link.message-delete {
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
}

/* Ensure all chat options have identical alignment */
.chat-drop-option-link .chat-options-link {
    margin-left: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: left !important;
}

/* Specific overrides for each option type to ensure consistency */
.chat-drop-option-link.message-reply-bottom .chat-options-link,
.chat-drop-option-link.message-edit .chat-options-link,
.chat-drop-option-link.message-delete .chat-options-link {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

/* Ensure icon containers are aligned consistently */
.chat-drop-option-link .icon-container {
    margin-left: 0 !important;
    margin-right: 8px !important;
} 


.user-initials.owner-initials.active-filter {
    background-color: #5062ff;
    color: white;
    border: 2px solid #5062ff;
    border-radius: 13px;
    width: auto;
    min-width: auto;
    height: auto;
    margin-top: 0;
    margin-left: 0;
    margin-right: -6px;
    padding: 2px 8px;
    font-family: Lato, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 15px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(80, 98, 255, 0.3);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    transform: translateY(-1px);
    z-index: 10;
}

.user-initials.owner-initials.active-filter:hover {
    background-color: #3d4bff;
    border-color: #3d4bff;
    box-shadow: 0 3px 6px rgba(80, 98, 255, 0.4);
    transform: translateY(-1px);
}

/* Ensure active-filter styling works across different formats */
.user-initials.owner-initials.active-filter.gridspot,
.user-initials.owner-initials.active-filter.boardspot {
    display: block;
}

.user-initials.owner-initials.active-filter.hide-score {
    display: block;
} 

/* Mobile view: Show collab-users-bar and override other mobile styles */
@media screen and (max-width: 767px) {
    .collab-users-bar {
        display: block !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* Override margin-top for swotsubnavsection.llist */
    .swotsubnavsection.llist {
        margin-top: 0 !important;
    }
    
    /* Hide collab-users-bar initially to prevent showing placeholder "KH" */
    .collab-users-bar {
        opacity: 0;
        visibility: hidden;
    }
    
    /* Show once content is loaded and transformed */
    .collab-users-bar.loaded {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease-in-out;
    }
}

/* Fix objective dropdown shift by removing bottom margin */
.parent-item-form {
    margin-bottom: 0 !important;
} 
