/* Objective Dropdown Styles - Tailwind CSS with !important to override swot-min.css */

.js-objective-dropdown {
    position: absolute !important;
    top: 90% !important;
    left: 0 !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    z-index: 50 !important;
    min-width: 12rem !important;
    padding: 0.5rem 0 !important;
    display: none !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.js-objective-dropdown.show {
    display: block !important;
    animation: dropdownFadeIn 0.15s ease-out !important;
}


.icon-container {
    width: 1rem !important;
    height: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Animation for dropdown appearance */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        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 !important;
}

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

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

.objective-title {
    position: relative !important;
    overflow: visible !important;
}

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

/* Make objective owner icon clickable */
.onjective-ower-icon {
    position: relative !important;
    cursor: pointer !important;
}

/* Make objective title description clickable */
.objective-title-description {
    cursor: pointer !important;
}

/* Mobile responsiveness with Tailwind-inspired improvements */
@media (max-width: 768px) {
    /* Dropdown container adjustments */
    .js-objective-dropdown {
        min-width: 16rem !important;
        max-width: calc(100vw - 2rem) !important;
        margin: 0.5rem !important;
        font-size: 0.875rem !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Icon container adjustments for mobile */
    .icon-container {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
} 