/* Styles pour MicroConnect Dashboard */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-bg: #212529;
    
    /* Light theme (default) */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --hover-bg: #f1f8ff;
    /* Note: --sidebar-bg is defined in navigation.css to avoid conflicts */
    --navbar-bg: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

[data-theme="dark"] {
    /* Dark theme */
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --hover-bg: #3a3a3a;
    /* Note: --sidebar-bg is defined in navigation.css to avoid conflicts */
    --navbar-bg: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Augmenter la taille des polices du contenu principal */
.main-content {
    font-size: 1rem;
    margin-left: 280px; /* Sidebar width */
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    width: calc(100% - 280px);
    max-width: calc(100% - 280px);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Responsive: hide sidebar margin on mobile */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding-top: calc(60px + 1.5rem); /* Topbar height + padding */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Modern Navbar Gradient */
.navbar-custom {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Deep Blue Professional */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Enhanced Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid var(--border-color);
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Status Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.85rem;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

/* Custom Gradients */
.success-gradient {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.warning-gradient {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #212529 !important;
}

.primary-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
}

/* Enhanced Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

/* Progress Bars */
.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--hover-bg);
    transform: scale(1.01);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Warmup Progress */
.warmup-progress {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.warmup-day {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
    transition: all 0.2s ease;
}

.warmup-day:hover {
    background: #f1f8ff;
    transform: translateX(5px);
}

.warmup-day.active {
    border-left-color: #198754;
    background: #d4edda;
}

.warmup-day.completed {
    border-left-color: #6c757d;
    opacity: 0.7;
}

/* Blacklist Status */
.blacklist-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.blacklist-status.clean {
    background: #d4edda;
    color: #155724;
}

.blacklist-status.listed {
    background: #f8d7da;
    color: #721c24;
}

.blacklist-status.unknown {
    background: #fff3cd;
    color: #856404;
}

/* Monitoring Dashboard */
.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.monitoring-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.monitoring-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.monitoring-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.monitoring-card .card-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.monitoring-card .card-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* Best Practices Cards */
.best-practice-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.best-practice-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.best-practice-card.success {
    border-left-color: #198754;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.best-practice-card.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.best-practice-card.danger {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.best-practice-card .practice-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.best-practice-card .practice-description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.best-practice-card .practice-action {
    font-size: 0.85rem;
    color: #0d6efd;
    font-weight: 500;
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #0d6efd;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    background: #f1f8ff;
    transform: translateX(3px);
}

.checklist-item.completed {
    border-left-color: #198754;
    background: #d4edda;
    opacity: 0.8;
}

.checklist-item .check-icon {
    margin-right: 0.75rem;
    color: #198754;
    font-size: 1.2rem;
}

.checklist-item .check-text {
    flex: 1;
    color: #212529;
}

/* Threshold Indicators */
.threshold-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0.25rem;
}

.threshold-indicator.safe {
    background: #d4edda;
    color: #155724;
}

.threshold-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

.threshold-indicator.critical {
    background: #f8d7da;
    color: #721c24;
}

/* Content Guidelines */
.content-guideline {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.content-guideline.avoid {
    background: #fff3cd;
    border-left-color: #dc3545;
}

.content-guideline.recommend {
    background: #d4edda;
    border-left-color: #198754;
}

.content-guideline .guideline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.content-guideline .guideline-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-guideline .guideline-items li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-guideline .guideline-items li:before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #6c757d;
}

/* Technical Requirements */
.requirement-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.requirement-item.verified {
    border-color: #198754;
    background: #d4edda;
}

.requirement-item.failed {
    border-color: #dc3545;
    background: #f8d7da;
}

.requirement-item .requirement-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.requirement-item .requirement-content {
    flex: 1;
}

.requirement-item .requirement-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.requirement-item .requirement-description {
    color: #6c757d;
    font-size: 0.9rem;
}

.requirement-item .requirement-status {
    margin-left: 1rem;
}

/* Warmup Progress Enhanced */
.warmup-day-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.warmup-day-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.warmup-day-card.active {
    border-left-color: #198754;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.warmup-day-card.completed {
    border-left-color: #6c757d;
    opacity: 0.7;
}

.warmup-day-card .day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.warmup-day-card .day-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0d6efd;
}

.warmup-day-card.active .day-number {
    color: #198754;
}

.warmup-day-card .day-limit {
    font-size: 0.9rem;
    color: #6c757d;
}

.warmup-day-card .day-progress {
    margin-top: 0.5rem;
}

/* Stats Grid Enhanced */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #0d6efd;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-item.success {
    border-top-color: #198754;
}

.stat-item.warning {
    border-top-color: #ffc107;
}

.stat-item.danger {
    border-top-color: #dc3545;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item .stat-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-item .stat-trend.up {
    color: #198754;
}

.stat-item .stat-trend.down {
    color: #dc3545;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .monitoring-grid {
        grid-template-columns: 1fr;
    }
    
    .best-practice-card {
        padding: 1rem;
    }
    
    .requirement-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .requirement-item .requirement-status {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.card {
    background-color: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

/* Stat Cards Compactes */
#dashboard-stats {
    margin-left: 0;
    margin-right: 0;
}

#dashboard-stats .col-auto {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    flex: 0 0 auto;
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 65px;
    width: fit-content;
    min-width: 180px;
    max-width: 240px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.stat-icon {
    font-size: 1.6rem;
    margin-right: 0.625rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.stat-card-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

.stat-card-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
}

.stat-card-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    color: #000;
}

@media (max-width: 768px) {
    .stat-card {
        padding: 0.5rem 0.625rem;
        min-height: 55px;
        max-width: 160px;
    }
    
    .stat-icon {
        font-size: 1.25rem;
        margin-right: 0.4rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.card-body {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    overflow-x: hidden;
    word-wrap: break-word;
}

.table {
    background-color: var(--card-bg);
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    table-layout: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    min-width: 100%;
    white-space: nowrap;
}

.table-container table td,
.table-container table th {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
}

/* Optimisation pour les colonnes longues */
.table td.text-truncate,
.table th.text-truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* IP addresses et emails - permettre le wrap */
.table td.ip-address,
.table td.email-address {
    word-break: break-all;
    max-width: 120px;
    font-size: 0.85rem;
}

/* Sujets d'emails - limiter la largeur */
.table td.email-subject {
    max-width: 250px;
    word-break: break-word;
}

/* Filtres de tableau */
.table-filters {
    background-color: #f8f9fa;
}

.table-filters th {
    padding: 0.5rem;
    vertical-align: middle;
}

.table-filters .form-control-sm,
.table-filters .form-select-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.table-filters .form-control-sm:focus,
.table-filters .form-select-sm:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.table thead {
    background-color: var(--bg-color);
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.table thead th {
    padding: 0.35rem 0.5rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}

.table tbody td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.table-hover tbody tr:hover {
    background-color: var(--hover-bg);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.table .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.table .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.table i {
    font-size: 0.9rem;
}

.badge {
    font-size: 0.85em;
    padding: 0.4em 0.8em;
    border-radius: 50rem; /* Pill shape */
    font-weight: 500;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-sm {
    font-size: 0.875rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Status badges */
.status-token-valid {
    color: var(--success-color);
}

.status-token-invalid {
    color: var(--danger-color);
}

.status-logged-in {
    color: var(--success-color);
}

.status-not-logged-in {
    color: var(--danger-color);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Réduire l'espacement des colonnes globalement */
.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Container optimisé */
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.3rem 0.4rem;
    }
    
    .table .btn-sm {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }
    
    .row {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }
    
    .row > * {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .stat-card {
        min-width: 150px;
        max-width: 200px;
        padding: 0.5rem 0.75rem;
        min-height: 60px;
    }
    
    .table-container table td,
    .table-container table th {
        max-width: 120px;
        font-size: 0.7rem;
    }
}
