/* ─── OneDrive Integration & Quota Styles ───────── */

/* Ingestion Quota Badge */
.ingestion-quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-top: 8px;
    transition: all 0.3s ease;
}

.ingestion-quota-badge i {
    font-size: 1rem;
}

.ingestion-quota-badge.quota-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.ingestion-quota-badge.quota-full {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* OneDrive Auth Panel */
.onedrive-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    gap: 16px;
}

.onedrive-auth .onedrive-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.onedrive-auth h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    margin: 0;
}

.onedrive-auth p {
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0;
    line-height: 1.5;
}

.onedrive-hint {
    font-size: 0.75rem !important;
    opacity: 0.6;
}

/* OneDrive Browser */
.onedrive-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.onedrive-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary, #e2e8f0);
}

.onedrive-user i {
    font-size: 1.5rem;
    color: var(--primary, #3b82f6);
}

.onedrive-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.onedrive-nav span {
    font-size: 0.85rem;
    color: var(--text-muted, #94a3b8);
    font-family: 'Inter', monospace;
}

/* File Rows in OneDrive */
.scan-file-row.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.scan-file-row[data-folder="true"] {
    cursor: pointer;
}

.scan-file-row[data-folder="true"]:hover {
    background: rgba(59, 130, 246, 0.1);
}

.file-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    margin-left: auto;
}

.file-badge.disabled {
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.05);
}

.file-badge.warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}

/* OneDrive Actions Bar */
.onedrive-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.onedrive-actions span {
    color: var(--text-muted, #94a3b8);
    font-size: 0.85rem;
}

/* Checkbox in OneDrive */
.onedrive-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    cursor: pointer;
    accent-color: var(--primary, #3b82f6);
    flex-shrink: 0;
}

.onedrive-checkbox:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Toast Notifications */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
