/* Reset e variáveis */
:root {
    --primary-color: #8b3dff;
    --primary-light: #9e5cff;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --border-color: #e2e8f0;
    --shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
    --shadow-lg: 0 4px 6px rgba(148, 163, 184, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    font-weight: 400;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--background-white);
    padding: 2rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    border-right: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 0 1rem;
    margin-bottom: 2.5rem;
}

.logo-link {
    text-decoration: none;
}

.logo-link h1 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: opacity 0.2s;
}

.logo-link:hover h1 {
    opacity: 0.9;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.9375rem;
}

.nav-item i {
    margin-right: 12px;
    font-size: 1.25rem;
}

.nav-item:hover {
    color: var(--primary-color);
    background-color: #f8f7ff;
}

.nav-item.active {
    color: var(--primary-color);
    background-color: #f1ebff;
}

.separator {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    opacity: 0.7;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    margin-left: 260px;
}

.main-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Seção de filtros */
.filter-section {
    display: flex;
    justify-content: flex-end;
    margin: 0 15px 20px 15px;
    padding-top: 5px;
}

.main-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Influencer Select */
.influencer-select-container {
    position: relative;
}

.influencer-select {
    appearance: none;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    min-width: 160px;
}

.influencer-select:hover {
    border-color: var(--primary-light);
}

.influencer-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.1);
}

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

.stat-card {
    background-color: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: #e9e4ff;
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.stat-card h3 i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.25rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-weight: 400;
}

.stat-change i {
    margin-right: 4px;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.accent {
    color: var(--primary-color);
}

/* Charts */
.charts-grid {
    display: grid;
    gap: 1.5rem;
}

.chart-card {
    background-color: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.chart-card:hover {
    border-color: #e9e4ff;
    box-shadow: var(--shadow-lg);
}

.chart-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.chart-card h3 i {
    color: var(--primary-color);
    margin-right: 8px;
    opacity: 0.9;
}

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

/* Filtros */
.filter-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 0 15px;
}

/* Dropdown de filtros */
.filter-dropdown-container {
    position: relative;
    z-index: 50;
}

.filter-toggle-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.filter-toggle-btn i {
    font-size: 1.1rem;
}

.filter-toggle-btn:hover {
    background-color: var(--primary-light);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.filter-dropdown-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.status-filter-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: var(--background-light);
}

.filter-button {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: var(--background-white);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Video Board */
.video-main-card {
    background-color: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    width: 100%;
}

.video-main-card:hover {
    border-color: #e9e4ff;
    box-shadow: var(--shadow-lg);
}

.video-main-card h3 {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.video-main-card h3 i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.25rem;
    opacity: 0.9;
}

.video-container {
    min-height: 176px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 15px;
    gap: 30px;
    margin-bottom: 15px;
}

/* Container de imagem para status queue ou processing */
.video-container[data-status="queue"] .image-options,
.video-container[data-status="processing"] .image-options {
    width: 130px;
    flex-shrink: 0;
}

/* Ajuste para alinhar as informações do projeto quando na fila ou processando */
.video-container[data-status="queue"],
.video-container[data-status="processing"] {
    display: flex;
    align-items: flex-start;
}

.video-container[data-status="queue"] .video-frame,
.video-container[data-status="processing"] .video-frame {
    align-self: flex-start;
}

.video-container[data-status="queue"] .project-info,
.video-container[data-status="processing"] .project-info {
    padding-top: 12px;
}

.video-container:last-child {
    margin-bottom: 0;
}

.video-frame {
    width: 130px;
    height: 130px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--background-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
    position: relative;
    margin-top: 12px;
}

.frame-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #64748b;
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-options {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    position: relative;
}

.image-option {
    width: 130px;
    height: 130px;
    border-radius: 6px;
    border: 1px dashed var(--border-color);
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    overflow: visible;
    margin-top: 12px;
}

.image-zoom, .image-compare {
    position: absolute;
    bottom: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    border: none;
}

.image-zoom {
    right: 5px;
}

.image-compare {
    left: 5px;
}

.image-zoom:hover, .image-compare:hover {
    background-color: var(--primary-color);
    color: white;
}

.image-option .image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.image-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.image-option i {
    position: relative;
    z-index: 1;
}

.image-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.8);
}

.image-option.selected {
    border-style: solid;
    border-color: var(--primary-color);
    border-width: 2px;
}

.image-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.chosen-badge {
    background-color: var(--success-color); /* Verde */
    font-weight: bold;
}

.result-badge {
    background-color: var(--primary-color); /* Roxo */
    font-weight: bold;
}

.remade-badge {
    background-color: var(--success-color); /* Verde */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.partially-remade-badge {
    background-color: #e67e22; /* Laranja */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.error-badge {
    background-color: #e74c3c; /* Vermelho */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.play-overlay i {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.play-overlay:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.video-result .image-content img {
    filter: brightness(0.85);
}

.project-info {
    flex-grow: 1;
    padding-left: 15px;
    width: 300px;
}

.project-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.project-status {
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.status-badge {
    background-color: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
    margin-left: 5px;
}

.project-creation-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    border: none;
    color: white;
}

.btn-icon i {
    font-size: 1rem;
}

.btn-icon.approve {
    background-color: var(--success-color);
}

.btn-icon.approve:hover {
    background-color: #1dae54;
}

.btn-icon.refresh {
    background-color: var(--primary-color);
}

.btn-icon.refresh:hover {
    background-color: var(--primary-light);
}

.btn-icon.refresh-success {
    background-color: var(--success-color);
    transition: background-color 0.3s ease;
}

.btn-icon.refresh-success:hover {
    background-color: var(--success-color);
}

.btn-icon.delete {
    background-color: #ef4444;
}

.btn-icon.delete:hover {
    background-color: #dc2626;
}

.btn-icon.instagram {
    background-color: #E1306C;
    display: inline-flex;
    text-decoration: none;
}

.btn-icon.instagram:hover {
    background-color: #c13584;
}

/* Botões */
.btn-small {
    padding: 5px 12px;
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}

.btn-small:hover {
    background-color: var(--primary-light);
}

.btn-small.secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-small.secondary:hover {
    background-color: rgba(139, 61, 255, 0.05);
}

/* Classe para body quando popup estiver aberto */
body.popup-open {
    overflow: hidden;
}

/* Popups de confirmação */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background-color: var(--background-white);
    border-radius: 8px;
    padding: 28px;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.popup-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-select-container {
    margin-bottom: 28px;
}

.popup-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: var(--background-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    cursor: pointer;
}

.popup-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 61, 255, 0.1);
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-popup {
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    border: none;
}

.btn-popup.confirm {
    background-color: var(--primary-color);
    color: white;
}

.btn-popup.confirm:hover {
    background-color: var(--primary-light);
}

.btn-popup.confirm-delete {
    background-color: var(--danger-color);
    color: white;
}

.btn-popup.confirm-delete:hover {
    background-color: #dc2626;
}

.btn-popup.cancel {
    background-color: #f3f4f6;
    color: var(--text-secondary);
}

.btn-popup.cancel:hover {
    background-color: #e5e7eb;
}

/* Image Compare Popup */
.compare-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.compare-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.compare-popup-content {
    width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.compare-popup-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.compare-popup-title {
    font-weight: 500;
    color: var(--text-primary);
}

.compare-popup-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.compare-popup-close:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.compare-popup-body {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.compare-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 45%;
}

.compare-image-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.compare-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Image Popup */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.image-popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.image-popup-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.image-popup-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.image-popup-title {
    font-weight: 500;
    color: var(--text-primary);
}

.image-popup-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.image-popup-close:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.image-popup-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 80vh;
    overflow: auto;
}

.image-popup-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Estilos para o popup de vídeo */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.video-popup-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.video-popup-title {
    font-weight: 500;
    color: var(--text-primary);
}

.video-popup-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s;
}

.video-popup-close:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.video-popup-body {
    padding: 0;
    background-color: #000;
}

.video-popup-player {
    width: 100%;
    max-height: 80vh;
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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