/* Custom styles */
.sidebar {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
}

.sidebar .nav-link {
    border-radius: 5px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

/* Word cloud container */
.wordcloud-container {
    text-align: center;
    margin: 20px 0;
}

.wordcloud-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Word frequencies table */
.word-frequencies {
    max-height: 400px;
    overflow-y: auto;
}

/* Form styling */
.form-group {
    margin-bottom: 1rem;
}

/* Table styling */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* User status badges */
.status-active {
    background-color: #28a745 !important;
}

.status-inactive {
    background-color: #dc3545 !important;
}

/* Button groups */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    text-align: center;
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Statistics cards */
.stat-card {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}