/* Base styles for Tenant Management System */

/* Light Theme Variables */
:root[data-theme="light"] {
    /* Bootstrap 5 Overrides */
    --bs-primary: #2196F3;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-body-bg: #001f3f;
    --bs-body-color: #ffffff;
    --bs-border-color: #dee2e6;
    --bs-card-bg: #ffffff;

    /* Custom Variables */
    --primary-color: #2196F3;
    --primary-hover: #1976D2;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --revenue-color: #f39c12;
    
    --bg-primary: #001f3f;
    --bg-secondary: #0a2342;
    --bg-tertiary: #0d2d59;
    

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #999999;

    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    --navbar-bg: #1a1a2e;
    --navbar-text: #ffffff;
    
    --card-bg: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --card-shadow-elevated: 0 6px 20px rgba(0, 0, 0, 0.15);
    
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --input-focus-border: #80bdff;
    --input-focus-shadow: rgba(0, 123, 255, 0.25);
    
    --table-stripe: #f8f9fa;
    --table-hover: #e9ecef;
    
    --primary-bg-subtle: rgba(33, 150, 243, 0.1);
    --primary-bg-hover: rgba(33, 150, 243, 0.15);
    --warning-bg-subtle: rgba(255, 193, 7, 0.1);
    --warning-bg-border: rgba(255, 193, 7, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-focus: 0 4px 8px rgba(33, 150, 243, 0.3);
}

/* Global / Body adjustments for Theme transitioning */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 64px;
}

.navbar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.navbar-toggle-icon {
    width: 24px;
    height: 2px;
    background-color: var(--navbar-text);
    transition: all 0.3s ease;
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .navbar-toggle-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-brand a {
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-brand a:hover {
    color: var(--primary-color);
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: inline-block;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.theme-icon {
    font-size: 1.25rem;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-icon-light { opacity: 1; transform: rotate(0deg); }
[data-theme="light"] .theme-icon-dark { opacity: 0; transform: rotate(180deg); }
[data-theme="dark"] .theme-icon-light { opacity: 0; transform: rotate(-180deg); }
[data-theme="dark"] .theme-icon-dark { opacity: 1; transform: rotate(0deg); }

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: var(--navbar-text);
}

.profile-button:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.profile-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-caret {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.profile-button:hover .profile-caret {
    transform: translateY(2px);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    min-width: 220px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    transition: background-color 0.3s ease;
}

.profile-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.profile-menu-info { flex: 1; }

.profile-menu-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.profile-menu-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.profile-menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-menu-item:hover {
    background-color: var(--bg-tertiary);
}

.profile-menu-icon {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.profile-menu-logout { color: var(--danger-color); }
.profile-menu-logout:hover { background-color: rgba(220, 53, 69, 0.1); }

/* Breadcrumb Layout (Custom) */
.breadcrumb-container {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: background-color 0.3s ease;
}

/* Main content Layout */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Footer Layout */
.footer {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* BS5 Customization Overrides (for cards to hook into theme vars) */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.card-header {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}
.card-body {
    color: var(--text-primary);
}
.card-footer {
    border-top: 1px solid var(--border-color);
}

/* Notification Bell Styles */
.notification-bell {
    position: relative;
    display: inline-block;
}

.notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--navbar-text);
    text-decoration: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
}

.notification-icon:hover {
    background-color: rgba(33, 150, 243, 0.1);
}

.bell-icon { font-size: 1.25rem; }

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--danger-color);
    color: white;
    border-radius: 10px;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}
.action-button
.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    width: 380px;
    max-height: 500px;
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.notification-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all-link:hover { text-decoration: underline; }

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: var(--bg-tertiary);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-content { flex: 1; }

.notification-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.notification-content p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.notification-content small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.notification-action {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8125rem;
    white-space: nowrap;
    font-weight: 500;
}

.notification-action:hover { text-decoration: underline; }

/* Custom Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: #333;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close:hover { color: #333; }

/* Toast Types */
.toast-success { border-left: 4px solid #28a745; }
.toast-success .toast-icon { color: #28a745; }

.toast-error { border-left: 4px solid #dc3545; }
.toast-error .toast-icon { color: #dc3545; }

.toast-warning { border-left: 4px solid #ffc107; }
.toast-warning .toast-icon { color: #ffc107; }

.toast-info { border-left: 4px solid #17a2b8; }
.toast-info .toast-icon { color: #17a2b8; }

/* File Upload Component Styles */
.file-upload-wrapper { width: 100%; }

.file-upload-area {
    border: 2px dashed var(--input-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-tertiary);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.1);
    transform: scale(1.02);
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-icon {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.file-upload-text {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.file-upload-text strong {
    color: var(--primary-color);
}

.file-upload-hint {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* File Preview Area */
.file-upload-preview {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.file-preview-item {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.file-preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.file-preview-icon {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.file-preview-info {
    width: 100%;
    text-align: center;
}

.file-preview-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-word;
    margin-bottom: 0.25rem;
}

.file-preview-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.file-preview-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.file-preview-remove:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Custom Status Badges (Domain Specific) */
.status-pending {
    background-color: rgba(255, 152, 0, 0.15);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.status-approved, .status-verified, .status-checked-in {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.status-rejected, .status-terminated {
    background-color: rgba(244, 67, 54, 0.15);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.status-checked-out, .status-suspended {
    background-color: rgba(158, 158, 158, 0.15);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.status-open, .status-in-progress {
    background-color: rgba(33, 150, 243, 0.15);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-resolved {
    background-color: rgba(76, 175, 80, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

/* Dashboard Layouts & Custom Grid Components */
.dashboard-section { margin-bottom: 3rem; }
.dashboard-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    transition: color 0.3s ease;
}

.dashboard-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.system-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-elevated);
}

.stat-card:not(:hover) {
    will-change: auto;
}

.stat-card.primary { border-left: 4px solid var(--primary-color); }
.stat-card.info { border-left: 4px solid var(--info-color); }
.stat-card.success { border-left: 4px solid var(--success-color); }
.stat-card.revenue { border-left: 4px solid var(--revenue-color); }
.stat-card.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid var(--warning-color);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.9;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.stat-card.primary .stat-icon { color: var(--primary-color); }
.stat-card.info .stat-icon { color: var(--info-color); }
.stat-card.success .stat-icon { color: var(--success-color); }
.stat-card.revenue .stat-icon { color: var(--revenue-color); }
.stat-card.warning .stat-icon { color: var(--warning-color); }

.stat-card .stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.stat-card .stat-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    transition: color 0.3s ease;
}

.stat-card .stat-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.stat-card .stat-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.stat-card .stat-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.stat-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Sidebar Layout */
.layout-with-sidebar {
    display: flex;
    gap: 2rem;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item { margin-bottom: 0.5rem; }

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-menu-link:hover,
.sidebar-menu-link.active {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.sidebar-menu-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.main-with-sidebar {
    flex: 1;
    min-width: 0;
}

/* Search and Filter Components */
.search-filter-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.search-bar {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--input-focus-shadow);
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.filter-tag-remove {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.filter-tag-remove:hover {
    background-color: rgba(33, 150, 243, 0.2);
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.results-count strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pending Actions Summary */
.pending-actions-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
    cursor: pointer;
}

.summary-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: var(--shadow-focus);
}

.summary-card:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-elevated);
}

.summary-card.has-pending { border-left-color: var(--warning-color); }

.summary-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-bg-subtle);
    transition: all 0.3s ease;
}

.summary-card:hover .summary-icon {
    background-color: var(--primary-bg-hover);
    color: var(--primary-color);
}

.summary-card.has-pending .summary-icon {
    background-color: var(--warning-bg-subtle);
    color: var(--warning-color);
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.summary-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.badge-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: var(--danger-color);
    color: white;
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-button {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
    cursor: pointer;
    will-change: transform;
}

.action-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: var(--shadow-focus);
}

.action-button:hover {
    transform: scale(1.02);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.action-button i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.action-button span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.action-button:hover i { color: var(--primary-hover); }
.action-button:hover span { color: var(--primary-color); }

.action-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-color: var(--primary-color);
    color: white;
}

.action-button.primary i,
.action-button.primary span {
    color: white;
}

.action-button.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
    border-color: var(--primary-hover);
}

/* Activity Feed */
.activity-feed {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    will-change: transform;
}

.activity-item:hover { background-color: var(--bg-tertiary); }
.activity-item:last-child { border-bottom: none; }
.activity-item.clickable { cursor: pointer; }
.activity-item a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.125rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.activity-item:hover .activity-icon { background-color: var(--primary-bg-hover); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-description {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.activity-description strong {
    font-weight: 600;
    color: var(--text-primary);
}

.activity-time {
    color: var(--text-muted);}