/* Review Details Modal Styles */
#view-review-details-modal .fileDetailsModal-panel,
#view-details-modal .fileDetailsModal-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 2rem); /* Full height minus top and bottom spacing */
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

/* Sticky tab bar styles */
#view-review-details-modal .sticky,
#view-details-modal .sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
}

/* Scrollable content area */
#view-review-details-modal .overflow-y-auto,
#view-details-modal .overflow-y-auto {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 1rem; /* Add space at the bottom */
}

/* Tab content styling */
#view-review-details-modal .tab-content,
#view-details-modal .tab-content {
    padding-bottom: 1rem; /* Additional spacing for scrollable area */
}

/* Enhanced Search Styles */
.search-container {
    position: relative;
    transition: width 0.3s ease-in-out;
}

.search-input {
    transition: all 0.3s ease-in-out;
    width: 200px;
}

.search-input:focus,
.search-input-expanded {
    width: 300px !important;
}

.search-container.search-expanded {
    z-index: 15;
}

/* Search options dropdown */
.search-options {
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.search-options label {
    transition: background-color 0.15s ease-in-out;
}

.search-options input[type="checkbox"] {
    transition: all 0.15s ease-in-out;
}

.search-options input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Search mode indicator */
.search-mode-indicator {
    pointer-events: none;
    font-weight: 500;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Adjust search input with indicator */
.search-input.has-indicator {
    padding-right: 4.5rem !important;
}

/* Mobile responsiveness for search */
@media (max-width: 640px) {
    .search-input {
        width: 150px;
    }
    
    .search-input:focus,
    .search-input-expanded {
        width: 100% !important;
        max-width: 250px;
    }
    
    .search-container {
        flex: 1;
    }
}