 /* Knowledge Base Specific Styles */
        .kb-container {
            margin: 40px 0;
        }
        
        .kb-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 15px;
        }
        
        .kb-tab {
            padding: 8px 20px;
            background: #f5f5f5;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .kb-tab.active {
            background: var(--primary);
            color: white;
        }
        
        .kb-tab:hover:not(.active) {
            background: #e0e0e0;
        }
        
        .kb-category {
            display: none;
        }
        
        .kb-category.active {
            display: block;
        }
        
        .kb-item-box {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }
        
        .kb-item-box:hover {
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(0, 86, 179, 0.1);
            transform: translateY(-3px);
        }
        
        .kb-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            color: white;
            font-size: 1.2rem;
        }
        
        .icon-pdf { background-color: #e74c3c; }
        .icon-doc { background-color: #3498db; }
        .icon-xls { background-color: #2ecc71; }
        .icon-zip { background-color: #f39c12; }
        .icon-img { background-color: #9b59b6; }
        .icon-default { background-color: var(--secondary); }
        
        .kb-text-wrapper {
            flex: 1;
        }
        
        .kb-title-link {
            font-weight: 500;
            color: var(--dark);
            text-decoration: none;
            transition: all 0.2s ease;
        }
        
        .kb-title-link:hover {
            color: var(--primary);
        }
        
        .kb-filename {
            font-size: 0.8rem;
            color: var(--gray);
            margin-top: 5px;
            word-break: break-all;
        }
        
        .kb-empty {
            text-align: center;
            padding: 40px;
            color: var(--gray);
            font-style: italic;
        }
        
        /* Admin upload form (hidden by default) */
        .kb-admin {
            margin-top: 50px;
            padding: 30px;
            background: #f9f9f9;
            border-radius: 8px;
            display: none;
        }
        
        .kb-admin.active {
            display: block;
        }
        
        .kb-form-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        /* Mobile Responsive Styles */
@media (max-width: 767px) {
.video-preview {
        margin-top: 8px;
    }
    
    .video-preview video {
        max-height: 200px;
    }
    .kb-item-box {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .kb-icon {
        width: 100%;
        height: auto;
        padding: 10px;
        border-radius: 8px 8px 0 0;
        font-size: 1.5rem;
    }

    .kb-text-wrapper {
        width: 100%;
        padding: 0 8px;
    }

    .file-meta {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .file-info {
        font-size: 0.75rem;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #eee;
        margin-top: 8px;
    }

    .kb-title-link {
        display: block;
        font-size: 0.95rem;
    }

    .file-type-badge {
        display: inline-block;
        margin-left: 0;
        margin-top: 4px;
    }

    /* Admin panel mobile styles */
    .kb-admin {
        width: 95%;
        right: 10px;
        bottom: 10px;
        max-height: 85vh;
    }

    .kb-form-grid {
        grid-template-columns: 1fr;
    }

    .kb-submit-btn {
        grid-column: span 1;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .kb-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .kb-tab {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .kb-item-box {
        padding: 10px;
    }

    .kb-status {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* Mobile-specific enhancements */
.file-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.meta-text {
    font-size: 0.8em;
}

@media (max-width: 767px) {
    .file-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .kb-title-link {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .file-type-badge {
        align-self: flex-start;
    }
    
    .kb-icon {
        margin-bottom: 8px;
    }
    
    .kb-text-wrapper {
        width: 100%;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .file-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .file-info {
        width: 100%;
    }
    
    .kb-item-box {
        padding: 8px;
    }
}



        @media (min-width: 768px) {
            .kb-form-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        .kb-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        .kb-form-group input,
        .kb-form-group select,
        .kb-form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-family: inherit;
        }
        
        .kb-submit-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
            grid-column: span 2;
        }
        
        .kb-submit-btn:hover {
            background: var(--primary-dark);
        }
        
        .kb-status {
            margin-top: 20px;
            padding: 15px;
            border-radius: 4px;
            display: none;
        }
        
        .kb-status.success {
            background: #e8f5e9;
            color: #2e7d32;
            display: block;
        }
        
        .kb-status.error {
            background: #ffebee;
            color: #c62828;
            display: block;
        }
        
        /* Toggle admin button */
        .kb-admin-toggle {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background: var(--primary);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 99;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
		
		.icon-cad {
    background-color: #8e44ad;
}

.icon-ppt {
    background-color: #e74c3c;
}

.file-type-badge {
    display: inline-block;
    background: #f1f1f1;
    color: #555;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.upload-details {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.view-btn, .download-btn {
    color: var(--primary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.view-btn:hover, .download-btn:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.file-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--gray);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-info i {
    font-size: 0.7rem;
}
.icon-video {
    background-color: #9b59b6; /* Purple color for videos */
}

/* Video preview styling */
.video-preview {
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.video-preview video {
    width: 100%;
    height: 200px;
    display: block;
}
.upload-success, .upload-error {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.upload-success i {
    color: #2e7d32;
    font-size: 1.5rem;
}

.upload-error i {
    color: #c62828;
    font-size: 1.5rem;
}

.file-details {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #1b5e20;
}

.error-message {
    color: #c62828;
    margin: 5px 0;
}

.retry-btn {
    background: #c62828;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.retry-btn:hover {
    background: #b71c1c;
}

.kb-status.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0d47a1;
}

/* Animation for loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Image preview styles */
.image-preview {
    position: relative;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.image-zoom-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview:hover .image-zoom-hint {
    opacity: 1;
}

/* Image modal styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border: 3px solid white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}
.close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #ccc;
}

.image-title {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1.2em;
}

.modal-open {
    overflow: hidden;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .image-preview img,
    .video-preview video {
        max-height: 150px;
    }
    
    .close-btn {
        top: -30px;
        right: 0;
        font-size: 30px;
    }
    
    .modal-content {
        max-width: 95%;
    }
}