/* Recora Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    color: #1f2937;
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 0.75rem;
}

small {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Ensure proper font sizes for common elements */
.page-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.page-heading {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.page-description {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

/* Page Header Styles */
.page-header {
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.5rem;
}

.page-header .page-description {
    font-size: 1rem !important;
    color: #6b7280 !important;
    margin-bottom: 0;
}

/* Table and Data Display */
.table-header h3 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

.table-info {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

/* Form Elements */
.filter-group label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.search-input, .filter-select {
    font-size: 1rem !important;
}

/* Code and Monospace Elements */
code, .app-id, .tenant-ref {
    font-size: 0.875rem !important;
    font-family: 'Inter', 'Lato', 'Monaco', 'Menlo', 'Consolas', monospace !important;
}

/* Badge and Status Elements */
.count-badge, .rpm-limit {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.date-display {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

/* Empty State */
.empty-state h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.empty-state p {
    font-size: 1rem !important;
    color: #6b7280 !important;
}

.empty-state i {
    font-size: 2.5rem !important;
    color: #9ca3af !important;
}

/* Filters Section - Apps Page */
.filters-section {
    margin-bottom: 2rem;
}

.filters-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filters-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 24px;
    align-items: end;
}

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

.filter-group label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #dc2626;
    border-radius: 50%;
}

.search-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem !important;
    background: #f8fafc;
    transition: all 0.3s ease;
    color: #1e293b;
}

.search-input:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem !important;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Data Table Section */
.data-table-section {
    margin-bottom: 2rem;
}

.table-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.table-container {
    overflow-x: auto;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    background: #f8fafc;
    color: #64748b;
}

.btn-icon:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Responsive Design for Filters */
@media (max-width: 1200px) {
    .filters-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-actions {
        justify-content: flex-start;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1f2937;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #e5e7eb;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fef2f2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    font-size: 24px;
    color: #dc2626;
}

.logo h2 {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    border-radius: 8px;
    margin: 2px 12px;
}

.nav-link:hover {
    background: #fef2f2;
    color: #dc2626;
    border-right-color: transparent;
}

.nav-item.active .nav-link {
    background: #fee2e2;
    color: #dc2626;
    border-right-color: #dc2626;
    font-weight: 600;
}

.nav-link i {
    width: 20px;
    font-size: 16px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #059669;
    background: #ecfdf5;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1fae5;
}

.connection-status i {
    color: #059669;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 15px;
    color: #6b7280;
    cursor: pointer;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.875rem;
}

.current-time {
    color: #1f2937;
    font-weight: 500;
}

.database-info {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-info p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.stat-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

.stat-meta.positive {
    color: #059669;
}

.stat-meta.negative {
    color: #dc2626;
}

/* Charts Section */
.charts-section {
    margin-bottom: 32px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.chart-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.chart-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.chart-actions select {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
}

.chart-container {
    height: 300px;
    position: relative;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-count {
    font-weight: 600;
    color: #1f2937;
}

/* Content Overview */
.content-overview {
    margin-bottom: 32px;
}

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

.overview-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.view-all {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all:hover {
    color: #b91c1c;
}

.activity-count, .health-status {
    font-size: 0.875rem;
    font-weight: 500;
}

.health-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.health-status.healthy {
    color: #059669;
}

.health-status.warning {
    color: #f59e0b;
}

.health-status.error {
    color: #dc2626;
}

/* Tenant List */
.tenants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tenant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.tenant-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.tenant-info p {
    font-size: 0.875rem;
    color: #6b7280;
}

.tenant-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.interaction-count {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.activity-time {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Health Metrics */
.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.health-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.health-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.health-value.healthy {
    color: #059669;
}

.health-value.warning {
    color: #f59e0b;
}

.health-value.error {
    color: #dc2626;
}

/* Status Badges */
.status-badge, .adapter-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.suspended {
    background: #fef3c7;
    color: #92400e;
}

.adapter-badge.ott {
    background: #dbeafe;
    color: #1e40af;
}

.adapter-badge.retail {
    background: #fef3c7;
    color: #92400e;
}

.adapter-badge.pharma {
    background: #d1fae5;
    color: #065f46;
}

.adapter-badge.consulting {
    background: #e0e7ff;
    color: #3730a3;
}

/* Alerts Section */
.alerts-section {
    margin-bottom: 32px;
}

.alert-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.alert-count {
    color: #dc2626;
    font-weight: 500;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
}

.alert-item.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.alert-item.warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.alert-icon {
    color: #dc2626;
    font-size: 15px;
    flex-shrink: 0;
}

.alert-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.alert-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 32px;
}

.actions-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.actions-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.action-btn i {
    font-size: 15px;
}

.action-btn span {
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.empty-state i {
    font-size: 42px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.empty-state p {
    font-size: 1rem;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 15px;
    color: #dc2626;
    margin-bottom: 16px;
}

.loading-spinner p {
    color: #6b7280;
    font-weight: 500;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #059669;
}

.toast.error {
    border-left: 4px solid #dc2626;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Global Button Styles */
.btn-primary, .btn-secondary, .btn-gradient, .btn-outline, .btn-search, .btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

/* Modal Enhancements */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-body {
    padding: 24px 28px 28px;
}

/* Form Enhancements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Pagination Enhancements */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.pagination-btn,
.pagination-num {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-num:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.pagination-num.active {
    background: linear-gradient(135deg, #dc2626, #f97316);
    color: white;
    border-color: #dc2626;
}

.pagination-dots {
    padding: 8px 4px;
    color: #9ca3af;
}

/* Data Table Enhancements */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8fafc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }
    
    .chart-card,
    .overview-card,
    .actions-card {
        padding: 16px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
}
