/**
 * AIEDocs Document Selector - ChatGPT Theme
 * Color scheme inspired by ChatGPT's interface
 */

.aiedocs-theme-chatgpt .aiedocs-selector-button {
    background: #343541;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.aiedocs-theme-chatgpt .aiedocs-selector-button:hover {
    background: #454654;
    border-color: rgba(255, 255, 255, 0.3);
}

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

.aiedocs-theme-chatgpt .aiedocs-selector-text {
    color: #FFFFFF;
}

/* Modal Overlay */
.aiedocs-theme-chatgpt.aiedocs-selector-overlay {
    background: rgba(32, 33, 35, 0.75);
}

/* Modal Container */
.aiedocs-theme-chatgpt.aiedocs-selector-modal {
    background: #343541;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

.aiedocs-theme-chatgpt .aiedocs-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #FFFFFF;
    font-weight: 600;
}

/* Documents List */
.aiedocs-theme-chatgpt .aiedocs-documents-list {
    background: #202123;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    max-height: 400px;
}

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

.aiedocs-theme-chatgpt .aiedocs-document-item:hover {
    background: #565869;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.aiedocs-theme-chatgpt .aiedocs-document-item input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: #10a37f;
}

.aiedocs-theme-chatgpt .aiedocs-document-title {
    color: #FFFFFF;
    font-weight: 500;
}

.aiedocs-theme-chatgpt .aiedocs-document-type {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 12px;
}

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

.aiedocs-theme-chatgpt .aiedocs-modal-actions button {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #454654;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aiedocs-theme-chatgpt .aiedocs-modal-actions button:hover {
    background: #565869;
    border-color: rgba(255, 255, 255, 0.3);
}

.aiedocs-theme-chatgpt .aiedocs-modal-close {
    background: #10a37f !important;
    border-color: #10a37f !important;
    color: #FFFFFF !important;
}

.aiedocs-theme-chatgpt .aiedocs-modal-close:hover {
    background: #0d8f6e !important;
    border-color: #0d8f6e !important;
}

/* Select All/None buttons */
.aiedocs-theme-chatgpt .aiedocs-select-all,
.aiedocs-theme-chatgpt .aiedocs-select-none {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.aiedocs-theme-chatgpt .aiedocs-select-all:hover,
.aiedocs-theme-chatgpt .aiedocs-select-none:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

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

.aiedocs-theme-chatgpt .aiedocs-documents-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.aiedocs-theme-chatgpt .aiedocs-documents-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.aiedocs-theme-chatgpt .aiedocs-documents-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

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