/**
 * AIEDocs Document Selector - Timeless Theme
 * Classic blue gradient theme with clean design
 */

.aiedocs-theme-timeless .aiedocs-selector-button {
    background: linear-gradient(130deg, #2831dc 0%, #09a9f8 100%);
    border: none;
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 49, 220, 0.2);
}

.aiedocs-theme-timeless .aiedocs-selector-button:hover {
    background: linear-gradient(130deg, #1e24b3 0%, #0790d4 100%);
    box-shadow: 0 4px 16px rgba(40, 49, 220, 0.3);
    transform: translateY(-2px);
}

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

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

/* Modal Overlay */
.aiedocs-theme-timeless.aiedocs-selector-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Modal Container */
.aiedocs-theme-timeless.aiedocs-selector-modal {
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.aiedocs-theme-timeless .aiedocs-modal-content {
    padding: 28px;
}

.aiedocs-theme-timeless .aiedocs-modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 600;
    background: linear-gradient(130deg, #2831dc 0%, #09a9f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Documents List */
.aiedocs-theme-timeless .aiedocs-documents-list {
    background: #fafafa;
    border: none;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    max-height: 400px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.aiedocs-theme-timeless .aiedocs-document-item {
    background: #FFFFFF;
    border: 1px solid #f0f0f0;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aiedocs-theme-timeless .aiedocs-document-item:hover {
    background: #f8f9ff;
    border-color: #09a9f8;
    box-shadow: 0 4px 12px rgba(9, 169, 248, 0.15);
    transform: translateX(4px);
}

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

.aiedocs-theme-timeless .aiedocs-document-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #2831dc;
}

.aiedocs-theme-timeless .aiedocs-document-title {
    color: #2c2c2c;
    font-weight: 500;
    font-size: 14px;
}

.aiedocs-theme-timeless .aiedocs-document-type {
    background: linear-gradient(130deg, #2831dc 0%, #09a9f8 100%);
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    margin-left: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.aiedocs-theme-timeless .aiedocs-modal-actions button {
    padding: 11px 24px;
    border: 2px solid #f1f3f7;
    background: #FFFFFF;
    color: #333333;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aiedocs-theme-timeless .aiedocs-modal-actions button:hover {
    background: #f1f3f7;
    border-color: #09a9f8;
    color: #2831dc;
}

.aiedocs-theme-timeless .aiedocs-modal-close {
    background: linear-gradient(130deg, #2831dc 0%, #09a9f8 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(40, 49, 220, 0.2);
}

.aiedocs-theme-timeless .aiedocs-modal-close:hover {
    background: linear-gradient(130deg, #1e24b3 0%, #0790d4 100%) !important;
    box-shadow: 0 4px 16px rgba(40, 49, 220, 0.3);
    transform: translateY(-2px);
}

/* Select All/None buttons */
.aiedocs-theme-timeless .aiedocs-select-all,
.aiedocs-theme-timeless .aiedocs-select-none {
    background: #FFFFFF !important;
    border: 2px solid #f1f3f7 !important;
    color: #333333 !important;
}

.aiedocs-theme-timeless .aiedocs-select-all:hover,
.aiedocs-theme-timeless .aiedocs-select-none:hover {
    background: #f1f3f7 !important;
    border-color: #09a9f8 !important;
    color: #2831dc !important;
}

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

.aiedocs-theme-timeless .aiedocs-documents-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 5px;
}

.aiedocs-theme-timeless .aiedocs-documents-list::-webkit-scrollbar-thumb {
    background: linear-gradient(130deg, #2831dc 0%, #09a9f8 100%);
    border-radius: 5px;
}

.aiedocs-theme-timeless .aiedocs-documents-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(130deg, #1e24b3 0%, #0790d4 100%);
}

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

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