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

html.light-mode .kol-hub-wrapper {
    background: #ffffff;
    color: #1f2937;
}

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

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

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

html.light-mode .kol-hub-customize-btn {
    background: linear-gradient(135deg, #98a88d 0%, #7a9472 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(152, 168, 141, 0.2);
    transition: all 0.3s ease;
    line-height: 1.2;
}

html.light-mode .kol-hub-customize-btn:hover {
    box-shadow: 0 4px 12px rgba(152, 168, 141, 0.3);
    transform: translateY(-2px);
}

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

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

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

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

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

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

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

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

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

html.light-mode .kol-hub-module-title i {
    color: #98a88d;
    font-size: 1.3rem;
}

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

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

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

html.light-mode .kol-hub-module-toggle.collapsed:before {
    content: '';
}

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

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

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

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

html.light-mode .kol-hub-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #98a88d;
}

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

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

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

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

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

html.light-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;
}

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

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

html.light-mode .kol-hub-module-link:hover {
    background: linear-gradient(135deg, #d1d5db 0%, #d4e6cd 100%);
    border-color: #98a88d;
    color: #1f2937;
}

html.light-mode .kol-hub-module-link.primary {
    background: linear-gradient(135deg, #98a88d 0%, #7a9472 100%);
    color: white;
    border-color: #6a825c;
}

html.light-mode .kol-hub-module-link.primary:hover {
    background: linear-gradient(135deg, #7a9472 0%, #6a825c 100%);
    border-color: #5a7250;
}

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

html.light-mode .kol-hub-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #98a88d 0%, #7a9472 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Prompts/Notifications */
html.light-mode .kol-hub-prompt {
    background: linear-gradient(135deg, #e5ebe1 0%, #d4e6cd 100%);
    border-left: 4px solid #98a88d;
    padding: 1rem;
    margin-bottom: 1px;
    border-radius: 4px;
    color: #5a6b52;
}

html.light-mode .kol-hub-prompt.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left-color: #16a34a;
    color: #15803d;
}

html.light-mode .kol-hub-prompt.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #ca8a04;
    color: #854d0e;
}

html.light-mode .kol-hub-prompt.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: #dc2626;
    color: #991b1b;
}

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

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

html.light-mode .kol-hub-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

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

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

html.light-mode .kol-hub-modal-close:hover {
    color: #111827;
}

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

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

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

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

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

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

html.light-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.light-mode .kol-hub-btn-primary {
    background: linear-gradient(135deg, #98a88d 0%, #7a9472 100%);
    color: white;
}

html.light-mode .kol-hub-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(152, 168, 141, 0.3);
    transform: translateY(-2px);
}

html.light-mode .kol-hub-btn-secondary {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #111827;
    border: 1px solid #d1d5db;
}

html.light-mode .kol-hub-btn-secondary:hover {
    background: linear-gradient(135deg, #d1d5db 0%, #d4e6cd 100%);
}

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

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

/* File Type Breakdown - Compact Gauges */
html.light-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 #f3f4f6;
}

html.light-mode .kol-hub-file-type {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    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.light-mode .kol-hub-file-type:hover {
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(152, 168, 141, 0.15);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

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

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

html.light-mode .kol-hub-file-type-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #98a88d;
}

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

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

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

html.light-mode .kol-hub-storage-percentage {
    font-size: 0.8rem;
    font-weight: 700;
    color: #98a88d;
}

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

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

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

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

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

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

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

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

html.light-mode .kol-hub-module-preference:hover {
    background: #f8f9fa;
    border-left: 4px solid #98a88d;
    padding-left: 12px;
}

html.light-mode .kol-hub-module-preference input[type="checkbox"] {
    accent-color: #98a88d;
}

html.light-mode .kol-hub-module-preference label {
    color: #1f2937;
    font-weight: 500;
}

/* Button Styling - BigMala 3D */
html.light-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.light-mode .kol-hub-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

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

html.light-mode .kol-hub-btn-primary {
    background: linear-gradient(135deg, #98a88d 0%, #7a9472 100%);
    color: white;
    border: 1px solid #6a825c;
}

html.light-mode .kol-hub-btn-primary:hover {
    background: linear-gradient(135deg, #7a9472 0%, #6a825c 100%);
}

html.light-mode .kol-hub-btn-secondary {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #1f2937;
    border: 1px solid #d1d5db;
}

html.light-mode .kol-hub-btn-secondary:hover {
    background: linear-gradient(135deg, #d1d5db 0%, #d4e6cd 100%);
    border-color: #98a88d;
}

/* Customize Button Override - Smaller */
html.light-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.light-mode .kol-hub-customize-btn i {
    font-size: 0.8rem;
    margin-right: 0.25rem;
}

/* END: Light Mode Styles */
