.controls {
    text-align: center;
    margin-top: 50px;
}

.message {
    text-align: center;
    margin-top: 20px;
}


#loading {
    display: none;  /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Changed to a darker shade */
    backdrop-filter: blur(3px); /* This provides the blur effect */
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Spinning icon animation for buttons */
.spinning {
    animation: spin-icon 1s linear infinite;
}

@keyframes spin-icon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state for buttons */
.btn-compact.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Overlay styling */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* High z-index to overlay everything */
}

/* Spinner styling */
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #ffffff; /* White spinner */
}

/* Status circles */
.status-circle {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin: 5px;
    border: 1px solid grey;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.status-circle.running {
    background-color: green;
    animation: pulseAnimation 2s infinite;
}

.status-circle.stopped {
    background-color: transparent;
    border: 1px solid #ccc;
}
@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 128, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0);
    }
}

.header-logo::after, .sidebar-logo::after {
    content: none;
}


.typing-dots {
    display: inline-block;
    position: relative;
    width: 20px; /* Adjust width to fit the dots */
    height: 6px;
}

.typing-dots span {
    width: 6px; /* Medium size */
    height: 6px; /* Medium size */
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    animation: typing 1.5s infinite;
}

.typing-dots span:nth-child(1) {
    left: 6;
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    left: 12px;
    animation-delay: 0.3s;
}

.typing-dots span:nth-child(3) {
    left: 24px;
    animation-delay: 0.6s;
}

@keyframes typing {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

.speaker-row {
    line-height: 30px;
}

/* Account dropdown styling */
.dropdown-menu.account-dropdown {
    position: absolute !important;
    left: 6px !important;
    top: 100% !important;
    margin-top: 8px;
    background: #232126;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: calc(100% - 12px);
    z-index: 1000;
    display: block !important;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0s ease-out 0.5s;
}

.dropdown-menu.account-dropdown.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.account-dropdown .dropdown-menu-body {
    padding: 16px;
}

.dropdown-menu.account-dropdown .username-display {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 12px;
    padding: 0 4px;
}

.dropdown-menu.account-dropdown .nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-menu.account-dropdown .nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.dropdown-menu.account-dropdown .nav a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-menu.account-dropdown .nav a i {
    font-size: 16px;
}

/* New Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    gap: 40px;
    width: 226px;
    background: #232126;
    border-radius: 8px;
    position: fixed;
    height: calc(100vh - 32px);
    top: 16px;
    left: 16px;
    overflow-y: auto;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth transition matching main content */
}

/* Adjust sidebar body to leave room for footer */
.sidebar-body {
    padding-bottom: 60px !important; /* Leave room for copyright footer */
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar footer with copyright */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 24px;
    text-align: center;
    background: transparent;
    box-shadow: none !important;
    border: none !important;
}

.sidebar-footer .copyright-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 2px;
}

.sidebar-footer .copyright-text:hover {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-footer .version-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.1px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-footer:hover .version-text {
    opacity: 1;
    transform: translateY(0);
}

/* Hide the main footer since copyright is in sidebar */
.main-footer {
    display: none !important;
}

/* Sidebar Logo */
.sidebar .sidebar-header {
    width: 100%;
    margin-bottom: 0;
    padding: 0 24px !important;
    border-bottom: none !important;
}

.sidebar-logo {
    display: block;
    width: 149px;
    height: 32px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-logo:hover {
    opacity: 0.9;
}

/* Sidebar Navigation */
.sidebar-body {
    width: 100%;
    flex: 1;
    padding: 0;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hide dropdown arrow for account menu */
#accountMenuButton::after {
    display: none !important;
}

.nav-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-sidebar .nav-item {
    margin: 0;
}

.sidebar-body .nav-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 24px !important;
    gap: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0.005em;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
}


.nav-sidebar .nav-link span {
    flex: 1;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s ease-in-out;
}

.nav-sidebar .nav-link:hover {
    background: transparent;
    color: #FFFFFF;
    text-decoration: none;
}

.nav-sidebar .nav-link:hover span {
    text-decoration-color: #9CA3AF;
}

.nav-sidebar .nav-link.active {
    background: transparent;
    color: #FFFFFF;
}

.nav-sidebar .nav-link.active span {
    text-decoration-color: #F94E18;
}

/* Remove borders from sidebar */
.sidebar-body .nav-group {
    border-bottom: none !important;
}

/* Hide navbar by default on desktop */
.header-main {
    display: none;
}

/* Hide navbar logo on desktop */
.navbar-logo {
    display: none;
}

/* Main content area adjustment */
.main {
    margin-left: 242px; /* 226px sidebar + 16px left margin */
    transition: margin-left 0.3s ease;
    min-height: auto !important; /* Override theme's 100vh to prevent unnecessary scrolling */
    margin-top: 0 !important; /* Override theme's 72px margin */
}

/* Fix headline positioning - should be 52px from top */
.main-app {
    margin-top: 52px !important;
    padding-top: 0 !important;
}

/* Headline styling */
.main-title {
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Subheadline styling */
.main-title + p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-style: normal;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 130%;
    color: #000000;
    margin-top: 18px !important;
}

/* Global font and background */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #f1f1f1 !important;
}

.main-app {
    background-color: #f1f1f1 !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    /* Show navbar on mobile */
    .header-main {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 12px 0 !important; /* Vertical padding only */
        margin: 0 !important;
        background: #232126 !important;
        height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 998;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 226px !important;
        margin: 0 !important;
        padding: 10px 0 24px 0 !important;
        border-radius: 0 !important;
        overflow-y: auto;
    }
    
    /* Hide sidebar header and adjust body on mobile */
    .sidebar .sidebar-header {
        display: none !important; /* Hide the logo section completely on mobile */
    }
    
    .sidebar .sidebar-body {
        border-radius: 0 !important;
        padding: 0 !important;
        margin-top: 60px !important; /* Start content below the header bar */
    }
    
    /* Ensure menu items have proper padding */
    .sidebar .nav-sidebar .nav-link {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
    }
    
    /* Prevent header from moving when sidebar opens */
    .sidebar.active ~ .header-main {
        transform: none !important; /* Header should stay in place */
    }
    
    .main {
        margin-left: 0;
        padding-top: 60px; /* Account for navbar height on mobile */
    }
    
    .main.main-app {
        margin-top: 60px; /* Ensure main-app also respects the header */
        padding-top: 32px !important; /* More padding for content on mobile */
    }
    
    /* Add extra spacing for the title area on mobile */
    .main-title {
        margin-top: 12px !important; /* Add some top margin to the headline */
    }
    
    /* Style the menu toggle button */
    #menuSidebar {
        position: absolute;
        left: 12px; /* Equal distance from left as from top/bottom */
        top: 50%;
        transform: translateY(-50%);
        color: #FFFFFF;
        font-size: 24px;
        text-decoration: none;
        padding: 6px; /* Smaller padding since we're positioning it with offset */
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        height: 36px; /* 60px header - 2*12px = 36px */
        width: 36px; /* Square button */
    }
    
    #menuSidebar:hover {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 4px;
    }
    
    /* Navbar logo on mobile */
    .navbar-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .navbar-logo img {
        height: 32px;
        width: auto;
    }
    
    /* Adjust headline on mobile for better spacing */
    .main-title {
        font-size: 32px !important; /* Slightly smaller on mobile */
    }
    
    /* Hide search and avatar on very small screens */
    @media (max-width: 576px) {
        .form-search {
            display: none;
        }
        
        .avatar-profile {
            display: none;
        }
        
        /* Even smaller headline on very small screens */
        .main-title {
            font-size: 28px !important;
        }
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-logo img {
        height: 36px; /* Slightly larger logo on tablets */
    }
    
    .main-title {
        font-size: 36px !important; /* Mid-size for tablets */
    }
}

/* Transcription Filters Styling */
.transcription-filters-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.filters-section {
    margin-bottom: 24px;
}

.filters-section:last-child {
    margin-bottom: 0;
}

.filters-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

/* Filter Grid Layout */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
}

/* Modern Select Styling */
.modern-select {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.modern-select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-select:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

/* Date Range Grid */
.date-range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-time-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

/* Modern Input Styling */
.modern-input {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
}

.modern-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-input:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.modern-input::placeholder {
    color: #9ca3af;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-reset:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
    color: #4b5563;
    text-decoration: none;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #3b82f6;
    border: 2px solid #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.refresh-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
    .transcription-filters-container {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .date-range-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .date-time-inputs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .filter-actions {
        justify-content: stretch;
    }
    
    .btn-reset,
    .refresh-btn {
        flex: 1;
        justify-content: center;
    }
    
    .filters-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .transcription-filters-container {
        padding: 12px;
        border-radius: 8px;
    }
    
    .filters-section {
        margin-bottom: 20px;
    }
    
    .modern-select,
    .modern-input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .modern-select {
        padding-right: 36px;
        background-size: 14px;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* Action Buttons Styling */
.action-buttons-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.actions-section {
    margin-bottom: 0;
}

.actions-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.action-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-group-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-group-title i {
    font-size: 16px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Modern Button Styles */
.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-modern i {
    font-size: 16px;
}

.btn-modern:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Button Variants */
.btn-modern.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
}

.btn-modern.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #2563eb;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-modern.btn-outline {
    background: #f8fafc;
    color: #374151;
    border-color: #e2e8f0;
}

.btn-modern.btn-outline:hover {
    background: #ffffff;
    color: #1f2937;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-modern.btn-ghost {
    background: transparent;
    color: #6b7280;
    border-color: transparent;
    padding: 8px 12px;
    min-height: auto;
}

.btn-modern.btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
    transform: none;
}

/* Small Modern Select */
.modern-select-small {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    color: #1f2937;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 32px;
}

.modern-select-small:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Table Styling */
.table-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.results-info {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
}

.modern-table thead th {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}

/* Sticky date/hour header - adjust for sidebar and margins */
/* Desktop: 242px (sidebar margin) + 24px (main-app padding) + 1px (adjustment) = 267px */
/* Right: 24px (main-app padding) + 1px (adjustment) = 25px */
.sticky-date-hour-header {
    left: 267px !important;
    right: 25px !important;
    max-width: none !important;
    border-radius: 10px 10px 0 0 !important;
    height: 40px !important;
    padding: 10px 24px !important;
    display: flex !important;
    align-items: center !important;
}

/* Tablet/mobile - account for smaller main-app padding (16px) */
@media (max-width: 991px) {
    .sticky-date-hour-header {
        left: 17px !important; /* 16px main padding + 1px adjustment */
        right: 17px !important;
        height: 40px !important;
    }
}

@media (max-width: 768px) {
    .sticky-date-hour-header {
        left: 17px !important;
        right: 17px !important;
        height: 40px !important;
        padding: 10px 16px !important;
    }
}

@media (max-width: 480px) {
    .sticky-date-hour-header {
        left: 17px !important;
        right: 17px !important;
        height: 40px !important;
        padding: 10px 12px !important;
    }
}

.modern-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    vertical-align: top;
}

.modern-table tbody tr:hover {
    background-color: #f8fafc;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Column Styles */
.category-col {
    width: 80px;
    min-width: 80px;
}

.timestamp-col {
    width: 180px;
    min-width: 180px;
}

.content-col {
    width: auto;
    min-width: 300px;
}

.modern-table .category-col {
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
}

.modern-table .timestamp-col {
    font-weight: 500;
    color: #4b5563;
    font-size: 13px;
}

.modern-table .content-col {
    line-height: 1.5;
    font-size: 14px;
}

/* Category Cell Styling */
.category-cell {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-right: 2px solid rgba(0, 0, 0, 0.1) !important;
    vertical-align: middle !important;
    text-align: center !important;
    position: relative;
    padding: 16px 8px !important;
    width: 80px;
    min-width: 80px;
}

.category-cell.category-blank {
    background-color: transparent !important;
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.category-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 4px 8px;
}

/* Responsive Design for Actions and Table */
@media (max-width: 768px) {
    .action-buttons-container {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .button-group {
        gap: 6px;
    }
    
    .btn-modern {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .table-container {
        padding: 16px;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 12px 16px;
    }
    
    .category-col {
        width: 60px;
        min-width: 60px;
    }
    
    .timestamp-col {
        width: 140px;
        min-width: 140px;
    }
    
    .category-label {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .action-buttons-container {
        padding: 12px;
    }
    
    .actions-title {
        font-size: 15px;
    }
    
    .btn-modern {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        gap: 6px;
    }
    
    .btn-modern i {
        font-size: 14px;
    }
    
    .table-container {
        padding: 12px;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .category-col {
        width: 50px;
        min-width: 50px;
    }
    
    .timestamp-col {
        width: 120px;
        min-width: 120px;
        font-size: 12px;
    }
    
    .content-col {
        min-width: 200px;
        font-size: 13px;
    }
    
    .category-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
}

/* Alternative Action Buttons Layout */
.actions-grid-alt {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-group-alt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.action-group-title-alt {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.action-group-title-alt i {
    font-size: 18px;
    color: #6b7280;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Alternative Modern Button Styles */
.btn-modern-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    flex: 1;
    min-width: 140px;
}

.btn-modern-alt i {
    font-size: 14px;
}

.btn-modern-alt:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Button Color Variants */
.btn-modern-alt.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-modern-alt.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.btn-modern-alt.btn-secondary {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.btn-modern-alt.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    color: white;
}

.btn-modern-alt.btn-warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn-modern-alt.btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

.btn-modern-alt.btn-accent {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.btn-modern-alt.btn-accent:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

/* Summary Controls Layout */
.summary-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-lang-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-lang-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.modern-select-compact {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #1f2937;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: 12px;
    padding-right: 28px;
}

.modern-select-compact:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Responsive Design for Alternative Layout */
@media (max-width: 768px) {
    .actions-grid-alt {
        gap: 16px;
    }
    
    .action-group-alt {
        padding: 16px;
    }
    
    .button-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-modern-alt {
        min-width: auto;
        flex: none;
    }
    
    .summary-controls {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .action-group-alt {
        padding: 12px;
    }
    
    .action-group-title-alt {
        font-size: 14px;
    }
    
    .btn-modern-alt {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
        gap: 4px;
    }
    
    .btn-modern-alt i {
        font-size: 12px;
    }
    
    .modern-select-compact {
        font-size: 11px;
        padding: 5px 8px;
        padding-right: 24px;
        background-size: 10px;
    }
}

/* Compact Toolbar Layout */
.action-toolbar {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background-color: #d1d5db;
    margin: 0 4px;
}

/* Compact Button Styles */
.btn-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #ffffff;
    color: #374151;
    min-height: 32px;
}

.btn-compact i {
    font-size: 13px;
}

.btn-compact:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #1f2937;
    text-decoration: none;
}

.btn-compact.btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-compact.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Compact Select */
.select-compact {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    color: #374151;
    transition: all 0.15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: 12px;
    padding-right: 24px;
    min-width: 80px;
    min-height: 32px;
}

.select-compact:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.select-compact:hover {
    border-color: #9ca3af;
}

/* Responsive Design for Compact Layout */
@media (max-width: 768px) {
    .action-toolbar {
        padding: 12px 16px;
        margin-bottom: 16px;
    }
    
    .toolbar-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .toolbar-group {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .toolbar-divider {
        display: none;
    }
    
    .btn-compact {
        padding: 8px 12px;
        min-height: 36px;
    }
    
    .select-compact {
        min-width: 70px;
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .action-toolbar {
        padding: 10px 12px;
    }
    
    .toolbar-group {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .toolbar-label {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .btn-compact {
        justify-content: flex-start;
        padding: 6px 10px;
        font-size: 11px;
        min-height: 32px;
    }
    
    .btn-compact i {
        font-size: 12px;
    }
    
    .select-compact {
        font-size: 11px;
        min-width: auto;
        width: 100%;
    }
}