/* KOL User Engagement Hub - Dark Mode CSS */
/* START: Dark Mode Styles */

html.dark-mode .kol-hub-wrapper {
    background: #1a1a1a;
    color: #e0e0e0;
}

html.dark-mode .kol-hub-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #242424 100%);
    border-bottom: 2px solid #333;
    padding: 0.5rem 2rem;
    margin-bottom: 1px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html.dark-mode .kol-hub-header h1 {
    color: #ffffff;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

html.dark-mode .kol-hub-header-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0;
}

html.dark-mode .kol-hub-customize-btn {
    background: linear-gradient(135deg, #6ba576 0%, #558761 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(107, 165, 118, 0.2);
    transition: all 0.3s ease;
    line-height: 1.2;
}

html.dark-mode .kol-hub-customize-btn:hover {
    box-shadow: 0 4px 12px rgba(107, 165, 118, 0.3);
    transform: translateY(-2px);
}

html.dark-mode .kol-hub-customize-btn:active {
    transform: translateY(0);
}

html.dark-mode .kol-hub-customize-btn i {
    margin-right: 0.5rem;
}

/* Container and Grid */
html.dark-mode .kol-hub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

html.dark-mode .kol-hub-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    margin-bottom: 1px;
}

/* Module Cards */
html.dark-mode .kol-hub-module {
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: grab;
    position: relative;
}

html.dark-mode .kol-hub-module:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

html.dark-mode .kol-hub-module.dragging {
    opacity: 0.7;
    cursor: grabbing;
    transform: scale(0.98);
}

html.dark-mode .kol-hub-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
    padding-bottom: 1px;
    border-bottom: 2px solid #333;
}

html.dark-mode .kol-hub-module-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
}

html.dark-mode .kol-hub-module-title i {
    color: #6ba576;
    font-size: 1.3rem;
}

html.dark-mode .kol-hub-module-actions {
    display: flex;
    gap: 0.5rem;
}

html.dark-mode .kol-hub-module-toggle,
html.dark-mode .kol-hub-module-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

html.dark-mode .kol-hub-module-toggle:hover,
html.dark-mode .kol-hub-module-close:hover {
    color: #e0e0e0;
}

/* Module Content */
html.dark-mode .kol-hub-module-content {
    padding: 0.5rem 0;
}

html.dark-mode .kol-hub-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
}

html.dark-mode .kol-hub-stat:last-child {
    border-bottom: none;
}

html.dark-mode .kol-hub-stat-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
}

html.dark-mode .kol-hub-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6ba576;
}

html.dark-mode .kol-hub-stat-value.green {
    color: #10b981;
}

html.dark-mode .kol-hub-stat-value.orange {
    color: #f59e0b;
}

html.dark-mode .kol-hub-stat-value.red {
    color: #ef4444;
}

/* Module Footer */
html.dark-mode .kol-hub-module-footer {
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px solid #333;
    display: flex;
    gap: 0.5rem;
}

html.dark-mode .kol-hub-module-link {
    flex: 1;
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid #444;
    transition: all 0.2s ease;
}

html.dark-mode .kol-hub-module-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #6ba576;
}

html.dark-mode .kol-hub-module-action-link:hover {
    color: #7ac588;
    transform: scale(1.1);
}

html.dark-mode .kol-hub-module-close {
    font-size: 1.8rem;
    padding: 0;
    line-height: 1;
}

html.dark-mode .kol-hub-module-link:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #6ba576;
    color: #ffffff;
}

html.dark-mode .kol-hub-module-link.primary {
    background: linear-gradient(135deg, #6ba576 0%, #558761 100%);
    color: white;
    border-color: #497551;
}

html.dark-mode .kol-hub-module-link.primary:hover {
    background: linear-gradient(135deg, #558761 0%, #497551 100%);
    border-color: #3d6541;
}

/* Progress Bar */
html.dark-mode .kol-hub-progress {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 1px 0;
}

html.dark-mode .kol-hub-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6ba576 0%, #558761 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Prompts/Notifications */
html.dark-mode .kol-hub-prompt {
    background: linear-gradient(135deg, #1f3a1f 0%, #0f2f0f 100%);
    border-left: 4px solid #6ba576;
    padding: 1rem;
    margin-bottom: 1px;
    border-radius: 4px;
    color: #a0c0a0;
}

html.dark-mode .kol-hub-prompt.success {
    background: linear-gradient(135deg, #064e3b 0%, #034632 100%);
    border-left-color: #16a34a;
    color: #86efac;
}

html.dark-mode .kol-hub-prompt.warning {
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    border-left-color: #ca8a04;
    color: #fbbf24;
}

html.dark-mode .kol-hub-prompt.error {
    background: linear-gradient(135deg, #7f1d1d 0%, #5f0f0f 100%);
    border-left-color: #dc2626;
    color: #fca5a5;
}

/* Modal */
html.dark-mode .kol-hub-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

html.dark-mode .kol-hub-modal.open {
    display: flex;
}

html.dark-mode .kol-hub-modal-content {
    background: #242424;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

html.dark-mode .kol-hub-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

html.dark-mode .kol-hub-modal-header h2 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.5rem;
}

html.dark-mode .kol-hub-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

html.dark-mode .kol-hub-modal-close:hover {
    color: #e0e0e0;
}

html.dark-mode .kol-hub-module-list {
    padding: 1.5rem;
}

html.dark-mode .kol-hub-module-preference {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #333;
    background: #242424;
}

html.dark-mode .kol-hub-module-preference:last-child {
    border-bottom: none;
}

html.dark-mode .kol-hub-module-preference label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

html.dark-mode .kol-hub-module-preference input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

html.dark-mode .kol-hub-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

html.dark-mode .kol-hub-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

html.dark-mode .kol-hub-btn-primary {
    background: linear-gradient(135deg, #6ba576 0%, #558761 100%);
    color: white;
}

html.dark-mode .kol-hub-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(107, 165, 118, 0.3);
    transform: translateY(-2px);
}

html.dark-mode .kol-hub-btn-secondary {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    color: #e0e0e0;
    border: 1px solid #444;
}

html.dark-mode .kol-hub-btn-secondary:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

/* Loading State */
html.dark-mode .kol-hub-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 1.1rem;
}

html.dark-mode .kol-hub-loading i {
    margin-right: 0.5rem;
}

/* File Type Breakdown - Compact Gauges */
html.dark-mode .kol-hub-file-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #333;
}

html.dark-mode .kol-hub-file-type {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
}

html.dark-mode .kol-hub-file-type:hover {
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(107, 165, 118, 0.15);
    border-color: #4a4a4a;
    transform: translateY(-2px);
}

html.dark-mode .kol-hub-file-type-icon {
    font-size: 1.25rem;
    color: #6ba576;
    margin-bottom: 0.25rem;
    display: block;
}

html.dark-mode .kol-hub-file-type-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.15rem;
}

html.dark-mode .kol-hub-file-type-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6ba576;
}

html.dark-mode .kol-hub-file-type-size {
    font-size: 0.65rem;
    color: #999;
    margin-top: 0.1rem;
}

/* Storage Gauge/Meter - Compact */
html.dark-mode .kol-hub-storage-meter {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1);
}

html.dark-mode .kol-hub-storage-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html.dark-mode .kol-hub-storage-percentage {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6ba576;
}

html.dark-mode .kol-hub-storage-percentage.warning {
    color: #f59e0b;
}

html.dark-mode .kol-hub-storage-percentage.critical {
    color: #ef4444;
}

html.dark-mode .kol-hub-progress-bar.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #ea8c55 100%);
}

html.dark-mode .kol-hub-progress-bar.critical {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    html.dark-mode .kol-hub-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    html.dark-mode .kol-hub-header h1 {
        font-size: 1.25rem;
    }
    
    html.dark-mode .kol-hub-modules {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    html.dark-mode .kol-hub-module {
        padding: 1rem;
    }
    
    html.dark-mode .kol-hub-module-header {
        margin-bottom: 0.75rem;
    }
    
    html.dark-mode .kol-hub-header-actions {
        flex-direction: column;
    }
    
    html.dark-mode .kol-hub-customize-btn {
        width: 100%;
    }
    
    html.dark-mode .kol-hub-modal-content {
        max-height: 90vh;
    }
    
    html.dark-mode .kol-hub-module-footer {
        flex-direction: column;
    }
    
    html.dark-mode .kol-hub-module-link {
        width: 100%;
    }
    
    html.dark-mode .kol-hub-modal-footer {
        flex-direction: column;
    }
    
    html.dark-mode .kol-hub-btn {
        width: 100%;
    }
}

html.dark-mode .kol-hub-btn {
    width: auto;
}

@media (max-width: 480px) {
    html.dark-mode .kol-hub-container {
        padding: 0 0.75rem;
    }
    
    html.dark-mode .kol-hub-header {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    html.dark-mode .kol-hub-modules {
        gap: 1px;
    }
    
    html.dark-mode .kol-hub-module {
        padding: 0.75rem;
    }
    
    html.dark-mode .kol-hub-module-title {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    html.dark-mode .kol-hub-stat-value {
        font-size: 1.1rem;
    }
    
    html.dark-mode .kol-hub-modal-content {
        border-radius: 4px;
    }
}

/* Preferences and Modal Enhancements */
html.dark-mode .kol-hub-module-preference {
    background: #242424;
    transition: all 0.2s ease;
}

html.dark-mode .kol-hub-module-preference:hover {
    background: #2a2a2a;
    border-left: 4px solid #6ba576;
    padding-left: 12px;
}

html.dark-mode .kol-hub-module-preference input[type="checkbox"] {
    accent-color: #6ba576;
}

html.dark-mode .kol-hub-module-preference label {
    color: #e0e0e0;
    font-weight: 500;
}

/* Button Styling - BigMala 3D */
html.dark-mode .kol-hub-btn {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

html.dark-mode .kol-hub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

html.dark-mode .kol-hub-btn:active {
    transform: translateY(0);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

html.dark-mode .kol-hub-btn-primary {
    background: linear-gradient(135deg, #6ba576 0%, #558761 100%);
    color: white;
    border: 1px solid #497551;
}

html.dark-mode .kol-hub-btn-primary:hover {
    background: linear-gradient(135deg, #558761 0%, #497551 100%);
}

html.dark-mode .kol-hub-btn-secondary {
    background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
    color: #e0e0e0;
    border: 1px solid #444;
}

html.dark-mode .kol-hub-btn-secondary:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-color: #6ba576;
}

/* Customize Button Override - Smaller */
html.dark-mode .kol-hub-customize-btn {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.65rem !important;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

html.dark-mode .kol-hub-customize-btn i {
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

/* END: Dark Mode Styles */
