body{
    background-color: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: .95rem;
}

.text-link {
    color: #212529;
    text-decoration: none;
    &:hover {
        text-decoration: underline;
    }
}


/* Alerts */
.alert {
    border: none;
    border-radius: 0;
}

/* Breadcrumb */
.breadcrumb{
    .breadcrumb-item a{
        color: #999;
        text-decoration: none;
        &:hover {
            color: #212529;
            text-decoration: underline !important;
        }
    }
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">"
}

/* Public Container */
.public-container h1{
    color: #004079;
}

/* Sortable Table Headers */

.table th a:hover {
    color: #0d6efd;
    text-decoration: none;
}

.table th a i {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.table th a:hover i {
    opacity: 1;
}


/* Main Application Styles */
.navbar-brand {
    font-weight: 600;
}

.card {
    transition: transform 0.4s ease-in-out;
}

.card-animated:hover {
    transform: translateY(-2px);
    img{
        transform: scale(1.1);
    }
}

.login-container {
    min-height: 100vh;
    
    background-image: url(/img/background.svg), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1.5rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 0;
    border-radius: 0;
    transition: all 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #3498db;
}

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.sidebar-footer a {
    transition: all 0.3s ease;
}

.sidebar-footer a:hover {
    color: white !important;
    transform: scale(1.1);
}

/* KnpPaginator Bootstrap styling */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #0d6efd;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}


.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
}

/* Sortable links styling */
.table a.sortable,
.table a.desc,
.table a.asc {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    :hover {
        font-weight: 800;
        text-decoration: underline;
    }
}
.table {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    tr th{
        background-color: #dce4ea;
    }
}
.table td{
    border: none;
}
    
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.main-content {
    transition: margin-left 0.3s ease-in-out;
}

.sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: #2c3e50;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: #34495e;
    color: white;
}

/* Desktop styles */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0);
        position: fixed;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
    }
}

/* Form Error Styles */
.form-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Redaction Styles */
.redacted-active {
    background-color: #ccc !important;
    color: inherit !important;
    user-select: none;
    position: relative;
    border-radius: 4px;
}

.redacted-active::before {
    content: "█";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 0.8em;
    border-radius: 4px;
}

/* Word Cloud Styles */
.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 0;
}

.word-cloud .badge {
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.word-cloud .badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.word-cloud .badge.badge-active {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
