/**
 * AIEDocs Document Selector - Gray Blue Theme
 * Soft gray-blue theme with subtle colors
 */

.aiedocs-theme-gray-blue .aiedocs-selector-button {
    background: #c7cbe0;
    border: 1px solid #a8add0;
    color: #1a2162;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aiedocs-theme-gray-blue .aiedocs-selector-button:hover {
    background: #b0b5d4;
    border-color: #434cc5;
    box-shadow: 0 2px 8px rgba(67, 76, 197, 0.2);
}

.aiedocs-theme-gray-blue .aiedocs-selector-icon {
    font-size: 16px;
}

.aiedocs-theme-gray-blue .aiedocs-selector-text {
    color: #1a2162;
}

/* Modal Overlay */
.aiedocs-theme-gray-blue.aiedocs-selector-overlay {
    background: rgba(199, 203, 224, 0.8);
}

/* Modal Container */
.aiedocs-theme-gray-blue.aiedocs-selector-modal {
    background: #FFFFFF;
    border: 1px solid #c7cbe0;
    box-shadow: 0 8px 32px rgba(26, 33, 98, 0.15);
}

.aiedocs-theme-gray-blue .aiedocs-modal-content {
    padding: 24px;
}

.aiedocs-theme-gray-blue .aiedocs-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a2162;
    font-weight: 600;
}

/* Documents List */
.aiedocs-theme-gray-blue .aiedocs-documents-list {
    background: #e6e8f0;
    border: 1px solid #c7cbe0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    max-height: 400px;
}

.aiedocs-theme-gray-blue .aiedocs-document-item {
    background: #FFFFFF;
    border: 1px solid #d8dbe8;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.aiedocs-theme-gray-blue .aiedocs-document-item:hover {
    background: #f5f6fa;
    border-color: #434cc5;
    box-shadow: 0 2px 6px rgba(67, 76, 197, 0.15);
}

.aiedocs-theme-gray-blue .aiedocs-document-item:last-child {
    margin-bottom: 0;
}

.aiedocs-theme-gray-blue .aiedocs-document-item input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: #434cc5;
}

.aiedocs-theme-gray-blue .aiedocs-document-title {
    color: #1a2162;
    font-weight: 500;
}

.aiedocs-theme-gray-blue .aiedocs-document-type {
    background: #434cc5;
    color: #FFFFFF;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 12px;
}

/* Modal Actions */
.aiedocs-theme-gray-blue .aiedocs-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.aiedocs-theme-gray-blue .aiedocs-modal-actions button {
    padding: 10px 20px;
    border: 1px solid #c7cbe0;
    background: #f5f6fa;
    color: #1a2162;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aiedocs-theme-gray-blue .aiedocs-modal-actions button:hover {
    background: #e6e8f0;
    border-color: #434cc5;
}

.aiedocs-theme-gray-blue .aiedocs-modal-close {
    background: #434cc5 !important;
    border-color: #434cc5 !important;
    color: #FFFFFF !important;
}

.aiedocs-theme-gray-blue .aiedocs-modal-close:hover {
    background: #363ec0 !important;
    border-color: #363ec0 !important;
    box-shadow: 0 2px 8px rgba(67, 76, 197, 0.3);
}

/* Select All/None buttons */
.aiedocs-theme-gray-blue .aiedocs-select-all,
.aiedocs-theme-gray-blue .aiedocs-select-none {
    background: #f5f6fa !important;
    border-color: #c7cbe0 !important;
    color: #1a2162 !important;
}

.aiedocs-theme-gray-blue .aiedocs-select-all:hover,
.aiedocs-theme-gray-blue .aiedocs-select-none:hover {
    background: #e6e8f0 !important;
    border-color: #434cc5 !important;
}

/* Scrollbar styling for documents list */
.aiedocs-theme-gray-blue .aiedocs-documents-list::-webkit-scrollbar {
    width: 8px;
}

.aiedocs-theme-gray-blue .aiedocs-documents-list::-webkit-scrollbar-track {
    background: #d8dbe8;
    border-radius: 4px;
}

.aiedocs-theme-gray-blue .aiedocs-documents-list::-webkit-scrollbar-thumb {
    background: #a8add0;
    border-radius: 4px;
}

.aiedocs-theme-gray-blue .aiedocs-documents-list::-webkit-scrollbar-thumb:hover {
    background: #434cc5;
}

/* Mobile Responsive adjustments */
@media (max-width: 768px) {
    .aiedocs-theme-gray-blue .aiedocs-modal-content {
        padding: 20px;
    }
    
    .aiedocs-theme-gray-blue .aiedocs-documents-list {
        max-height: 320px;
    }
}

@media (max-width: 480px) {
    .aiedocs-theme-gray-blue .aiedocs-selector-button {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .aiedocs-theme-gray-blue .aiedocs-modal-content h3 {
        font-size: 16px;
    }
    
    .aiedocs-theme-gray-blue .aiedocs-document-type {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        display: inline-block;
    }
}