/* =======================================================================
   ICONS
   =======================================================================
   Icon styles including document icons, UI icons, and icon containers.
   ======================================================================= */

/* ============================================
   DOCUMENT ICONS
   ============================================ */
.document-icon {
    color: var(--brand-accent-orange) !important;
    width: 16px;
    text-align: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14px;
    flex-shrink: 0;
    opacity: 1 !important;
}

/* ============================================
   RESOURCE ICONS
   ============================================ */
.resource-icon {
    color: var(--text-color) !important;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: var(--font-size-base);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.resource-icon:hover {
    color: var(--brand-accent-orange) !important;
}

/* ============================================
   CARET ICONS (DROPDOWN ARROWS)
   ============================================ */
.caret-icon {
    transition: transform 0.2s ease-in-out;
    color: var(--text-color) !important;
    font-size: 0.8em;
    flex-shrink: 0;
    opacity: 1 !important;
}

.document-category-header.open .caret-icon {
    transform: rotate(90deg);
}

/* ============================================
   STATUS ICONS
   ============================================ */
.status-icon {
    font-size: 12px;
    margin-right: 4px;
    flex-shrink: 0;
}

.status-icon.success {
    color: #28a745;
}

.status-icon.error {
    color: #dc3545;
}

.status-icon.warning {
    color: #ffc107;
}

.status-icon.info {
    color: #17a2b8;
}

/* ============================================
   LOADING ICONS
   ============================================ */
.loading-icon {
    color: var(--brand-accent-orange);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   AVATAR ICONS
   ============================================ */
.avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-icon.user {
    background: #1a2b4d;
    color: #fff;
}

.avatar-icon.assistant {
    background: var(--brand-accent-orange);
    color: #fff;
}

/* ============================================
   SIDEBAR ICONS
   ============================================ */
.sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-color-light);
    flex-shrink: 0;
}

/* ============================================
   NOTIFICATION ICONS
   ============================================ */
.notification-icon {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================
   TOGGLE ICONS
   ============================================ */
.toggle-icon {
    transition: transform 0.3s ease;
    cursor: pointer;
    color: var(--text-color-light);
    padding: 2px;
}

.toggle-icon:hover {
    color: var(--brand-accent-orange);
}

.toggle-icon.active {
    transform: rotate(180deg);
}

/* ============================================
   INTERACTIVE ICON CONTAINERS
   ============================================ */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.icon-container:hover {
    background-color: rgba(235, 129, 50, 0.1);
}

.icon-container:active {
    background-color: rgba(235, 129, 50, 0.2);
}

/* ============================================
   ICON WITH TEXT
   ============================================ */
.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon-text .icon {
    flex-shrink: 0;
}

/* ============================================
   ICON SIZES
   ============================================ */
.icon-xs { font-size: 10px; }
.icon-sm { font-size: 12px; }
.icon-md { font-size: 16px; }
.icon-lg { font-size: 20px; }
.icon-xl { font-size: 24px; }

/* ============================================
   BRAND ICONS
   ============================================ */
.brand-icon {
    color: var(--brand-accent-orange);
}

/* ============================================
   DARK MODE ADJUSTMENTS (Manual Toggle Only)
   ============================================ */
body.dark-mode .resource-icon {
    color: var(--text-color) !important;
}

body.dark-mode .resource-icon:hover {
    color: var(--brand-accent-orange) !important;
}

body.dark-mode .caret-icon {
    color: var(--text-color) !important;
}

body.dark-mode .sidebar-icon {
    color: var(--text-color) !important;
}

body.dark-mode .toggle-icon {
    color: var(--text-color) !important;
}

body.dark-mode .toggle-icon:hover {
    color: var(--brand-accent-orange) !important;
}

body.dark-mode .avatar-icon.user {
    background: #fff;
    color: #1a2b4d;
}

body.dark-mode .icon-container:hover {
    background-color: rgba(235, 129, 50, 0.15);
}

body.dark-mode .icon-container:active {
    background-color: rgba(235, 129, 50, 0.25);
} 