.counterManager.dashboard { display: flex; flex-direction: column; width: 100%; padding: 20px; gap: 20px; background: transparent; }
.counterManager .section { background: white; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-xs); }
.counterManager .section h2 { margin-top: 0; font-size: 24px; color: #333; font-weight: 600; }
.counterManager .banner-counter-header { display: flex; justify-content: space-between; align-items: center; }
.counterManager .banner-counter-header h1 { margin: 0; font-size: 26px; color: #111; font-weight: 700; }
.counterManager .period-buttons { display: flex; align-items: center; gap: 0px; }
.counterManager .period-buttons span { font-size: 17px; font-weight: 500; color: #666; }
.counterManager .charts-row { display: flex; gap: 30px; align-items: stretch; }
.counterManager .chart-section-left { flex: 2; min-height: 280px; }
.counterManager .chart-section-right { flex: 1; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.counterManager .chart-title { font-size: 21px; font-weight: 600; color: #333; margin-bottom: 15px; text-align: center; }
.counterManager .line-chart-wrapper { flex: 1; position: relative; min-height: 240px; width: 100%; padding: 10px; box-sizing: border-box; }
.counterManager #banner-line-chart, .counterManager #page-line-chart { width: 100% !important; height: 100% !important; min-height: 220px; }
.counterManager .pie-chart-wrapper { display: flex; justify-content: center; align-items: center; margin-bottom: 15px; width: 312px; height: 312px; }
.counterManager #banner-pie-chart { width: 312px !important; height: 312px !important; max-width: 312px; max-height: 312px; }
.counterManager #page-pie-chart { width: 312px !important; height: 312px !important; max-width: 312px; max-height: 312px; }
.counterManager .stats-charts-section { }
.counterManager .stats-charts-section h2 { font-size: 24px; color: #333; font-weight: 600; margin-bottom: 20px; text-align: center; border-bottom: 2px solid #e9ecef; padding-bottom: 10px; }
.counterManager .stats-charts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.counterManager .stats-chart-item { display: flex; flex-direction: column; align-items: center; height: 500px; padding: 15px; justify-content: space-between; }
.counterManager .stats-chart-wrapper { width: 280px; height: 280px; position: relative; margin-bottom: 15px; flex-shrink: 0; }
.counterManager .stats-chart-wrapper canvas { width: 280px !important; height: 280px !important; max-width: 280px; max-height: 280px; }
.counterManager .stats-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 15px; font-size: 15px; width: 100%; max-width: 350px; flex-grow: 1; align-content: start; }
.counterManager .stats-legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.counterManager .stats-legend-color { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.counterManager .stats-legend-text { font-size: 14px; color: #333; word-break: break-word; line-height: 1.3; }
.counterManager .legend { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 14px; width: 100%; max-width: 400px; }
.counterManager .legend-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.counterManager .legend-color { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.counterManager .legend-text { font-size: 15px; color: #333; word-break: break-word; line-height: 1.3; }
.counterManager table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.counterManager th, .counterManager td { padding: 12px 8px; border-bottom: 1px solid #eaeaea; text-align: center; vertical-align: middle; }
.counterManager th { background: #f8f9fa; font-weight: bold; color: #495057; font-size: 18px; border-top: 2px solid #dee2e6; }
.counterManager td { font-size: 17px; }
.counterManager th:nth-child(1), .counterManager td:nth-child(1) { width: 60px; }
.counterManager th:nth-child(2), .counterManager td:nth-child(2) { width: 80px; }
.counterManager th:nth-child(3), .counterManager td:nth-child(3) { width: 200px; }
.counterManager th:nth-child(4), .counterManager td:nth-child(4) { width: auto; text-align: left !important; }
.counterManager th:nth-child(5), .counterManager td:nth-child(5) { width: 100px; }
.counterManager th:nth-child(6), .counterManager td:nth-child(6) { width: 100px; }
.counterManager th:nth-child(7), .counterManager td:nth-child(7), .counterManager th:nth-child(8), .counterManager td:nth-child(8) { width: 200px; text-align: left !important; }
.counterManager td:first-child strong { color: #007bff; font-size: 21px; }
.counterManager tbody tr:nth-child(1) td:first-child strong { color: #ffd700; font-size: 23px; }
.counterManager tbody tr:nth-child(2) td:first-child strong { color: #c0c0c0; font-size: 22px; }
.counterManager tbody tr:nth-child(3) td:first-child strong { color: #cd7f32; font-size: 21px; }
.counterManager img { max-width: 80px; height: auto; border-radius: 4px; border: 1px solid #ddd; vertical-align: middle; }
.counterManager .url-text { font-size: 16px; color: #888; width: 100%; word-break: break-all; cursor: pointer; text-decoration: underline; transition: color 0.2s ease; }
.counterManager .url-text:hover { color: #36a2eb; }
.counterManager .click-unit-container { text-align: right; margin-bottom: 10px; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.counterManager .click-unit-label { font-weight: bold; margin-right: 4px; }
.counterManager .click-unit-btn { padding: 7px 15px; border: 1px solid #ccc; background: white; cursor: pointer; border-radius: 6px; transition: all 0.2s ease; font-size: 15px; font-weight: 500; }
.counterManager .click-unit-btn:hover { background: #f8f9fa; }
.counterManager .click-unit-btn.active { background: #36a2eb; color: white; font-weight: bold; border-color: #36a2eb; }
.counterManager .stat-mode-toggle { display: flex; gap: 8px; margin-bottom: 15px; justify-content: flex-end; }
.counterManager .stat-mode-toggle-btn { padding: 7px 15px; border: 1px solid #ddd; background: white; cursor: pointer; border-radius: 6px; transition: all 0.2s ease; font-size: 15px; font-weight: 500; }
.counterManager .stat-mode-toggle-btn:hover { background: #f8f9fa; }
.counterManager .stat-mode-toggle-btn.active { background: #28a745; color: white; border-color: #28a745; }
.counterManager .banner-link, .counterManager .product-link { color: #36a2eb; text-decoration: none; font-weight: 500; max-width: 200px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.counterManager .banner-link:hover, .counterManager .product-link:hover { text-decoration: underline; }
.counterManager .ctr-value { font-weight: 600; color: #28a745; }
.counterManager .ctr-value.low { color: #dc3545; }
.counterManager .ctr-value.medium { color: #ffc107; }
.counterManager #page-ranking img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.counterManager #page-ranking img:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.counterManager #page-ranking a:hover img { border-color: #36a2eb; }
.counterManager td strong { color: #007bff; font-weight: 700; }
.counterManager .mini-chart-container { width: 90%; height: 50px; position: relative; }
.counterManager .mini-chart { width: 100%; height: 100%; }
.counterManager tbody tr:hover { background: #f8f9fa; transition: background 0.2s ease; }
.counterManager td:nth-child(3) a { display: block; width: 100%; text-align: center !important; }
