/* API Statistics Page Styles */ .api-statistics-container { /*max-width: 1200px;*/ margin: 0 auto; padding: 48px 0px; } /* Search Section */ .statistics-search-section { display: flex; justify-content: flex-end; margin-bottom: 30px; } .search-filter-row { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px 16px; border-radius: 30px; border: 1px solid #e0e0e0; } .date-range-picker { display: flex; align-items: center; gap: 8px; } .date-input { border: none; padding: 8px 12px; font-size: 14px; color: #333; background: transparent; outline: none; } .date-separator { color: #666; } .btn-search { background: #0049B4; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; } .btn-search:hover { background: #003d99; } .btn-search svg { stroke: #fff; } /* Summary Card */ .statistics-summary-card { background: #f5f8fc; border-radius: 16px; padding: 40px; margin-bottom: 30px; } .summary-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; } .summary-left { flex: 1; } .app-select-wrapper { margin-bottom: 24px; } .app-select { padding: 12px 40px 12px 20px; border-radius: 25px; border: 1px solid #0049B4; background: #fff; color: #0049B4; font-size: 14px; font-weight: 500; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230049B4' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; min-width: 150px; outline: none; transition: all 0.2s; } .app-select:hover { background-color: #f0f5ff; } .app-select:focus { border-color: #003d99; box-shadow: 0 0 0 3px rgba(0, 73, 180, 0.1); } .summary-info { padding-left: 10px; } .summary-total-text { font-size: 18px; color: #333; margin-bottom: 16px; } .summary-total-text strong { font-size: 24px; color: #0049B4; } .summary-detail-list { display: flex; flex-direction: column; gap: 12px; } .summary-detail-item { display: flex; align-items: center; gap: 8px; font-size: 14px; } .summary-detail-item.success .detail-icon { color: #4A90D9; } .summary-detail-item.failure .detail-icon { color: #F5A3B5; } .detail-label { color: #666; min-width: 30px; } .detail-value { font-weight: 600; color: #333; } .detail-percent { color: #999; } /* Donut Chart */ .summary-center { flex: 0 0 200px; display: flex; align-items: center; justify-content: center; } #donutChart { max-width: 200px; max-height: 200px; } .donut-segment { transition: stroke-dasharray 0.3s ease, stroke-dashoffset 0.3s ease; } /* Rate Display */ .summary-right { flex: 0 0 230px; display: flex; flex-direction: column; gap: 20px; } .rate-display { display: flex; align-items: center; gap: 8px; padding: 16px 0; border-bottom: 1px solid #e0e0e0; } .rate-display:last-child { border-bottom: none; } .rate-indicator { width: 12px; height: 12px; border-radius: 50%; } .rate-indicator.success { background: #4A90D9; } .rate-indicator.failure { background: #F5A3B5; } .rate-label { font-size: 14px; color: #666; } .rate-value { font-size: 32px; font-weight: 700; } .success-rate .rate-value { color: #4A90D9; } .failure-rate .rate-value { color: #F5A3B5; } .rate-percent { font-size: 18px; color: #999; } /* Statistics Table Card */ .statistics-table-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); } .table-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: #0049B4; color: #fff; } .table-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 0; } .table-title svg { stroke: #fff; } .btn-download { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(255, 255, 255, 0.2); border-radius: 20px; color: #fff; text-decoration: none; font-size: 14px; transition: background 0.2s; } .btn-download:hover { background: rgba(255, 255, 255, 0.3); color: #fff; } .table-container { padding: 0; } .statistics-table { width: 100%; border-collapse: collapse; } .statistics-table thead th { padding: 16px 20px; text-align: left; font-weight: 500; color: #666; border-bottom: 1px solid #e0e0e0; background: #fafafa; } .statistics-table tbody td { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; color: #333; } .statistics-table tbody tr:hover { background: #f9f9f9; } .api-name { display: flex; align-items: center; gap: 10px; } .api-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #f0f0f0; border-radius: 6px; } .api-icon svg { stroke: #666; } .api-icon.total { background: #e3f2fd; } .api-icon.total svg { stroke: #0049B4; } /* Progress Bar */ .progress-cell { min-width: 200px; } .progress-bar { display: flex; height: 12px; background: #e0e0e0; border-radius: 6px; overflow: hidden; } .progress-success { background: #4A90D9; transition: width 0.3s ease; } .progress-failure { background: #F5A3B5; transition: width 0.3s ease; } /* Total Row */ .statistics-table tfoot .total-row { background: #e3f2fd; } .statistics-table tfoot .total-row td { padding: 16px 20px; font-weight: 600; color: #0049B4; border-bottom: none; } /* Empty State */ .empty-row td { text-align: center; padding: 40px 20px; color: #999; } /* Responsive */ @media (max-width: 992px) { .summary-content { flex-direction: column; gap: 30px; } .summary-left, .summary-center, .summary-right { flex: none; width: 100%; } .summary-center { order: -1; } .summary-right { flex-direction: row; justify-content: center; } } @media (max-width: 768px) { .api-statistics-container { padding: 20px 16px; } .statistics-summary-card { padding: 24px 20px; } .app-toggle-buttons { flex-wrap: wrap; } .toggle-btn { flex: 1; text-align: center; } .statistics-table thead th, .statistics-table tbody td, .statistics-table tfoot td { padding: 12px 10px; font-size: 13px; } .progress-cell { min-width: 100px; } .search-filter-row { flex-wrap: wrap; } }