/**
 * NanoNside - 포인트 사용내역 스타일
 */

/* 요약 카드 */
.point-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.point-summary-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.point-summary-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.point-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.point-summary-value.monthly-usage {
    color: #ef4444;
}

/* 필터 섹션 */
.filter-section {
    padding: 0.5rem 0;
}

/* 기간 선택 */
.date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.date-input {
    width: 150px;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 14px;
}

.date-input:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.date-separator {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 빠른 선택 버튼 */
.quick-date-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-date-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-date-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.quick-date-btn.active {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

/* 테이블 스타일 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #f59e0b8a;
    padding: 0.875rem 1rem;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.table th.text-right {
    text-align: right;
}

.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

.table td.text-right {
    text-align: right;
}

.table tr:hover {
    background-color: #f9fafb;
}

/* 금액 색상 */
.amount-positive {
    color: #3b82f6;
    font-weight: 600;
}

.amount-negative {
    color: #ef4444;
    font-weight: 600;
}

.amount-neutral {
    color: #6b7280;
    font-weight: 500;
}

/* 잔액 표시 */
.balance-cell {
    color: #6b7280;
    font-weight: 500;
}

/* 빈 결과 */
.empty-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-message svg {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

/* 페이지네이션 컨테이너 */
.pagination-container {
    margin-top: 1.5rem;
}

/* 반응형 */
@media (max-width: 640px) {
    .point-summary {
        grid-template-columns: 1fr;
    }

    .date-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .date-input {
        width: 100%;
    }

    .date-separator {
        text-align: center;
    }

    .date-filter .btn-primary {
        width: 100%;
        margin-top: 0.5rem;
    }

    .quick-date-btns {
        justify-content: center;
    }

    /* 모바일 테이블 */
    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
    }

    .table tr {
        padding: 1rem;
        margin-bottom: 0.5rem;
        background-color: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
    }

    .table tr:hover {
        background-color: white;
    }

    .table td {
        padding: 0.25rem 0;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #6b7280;
        font-size: 0.75rem;
    }

    .table td.text-right {
        text-align: right;
    }
}

/* 로딩 상태 */
.loading-row td {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

/* 카드 기본 스타일 */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

/* 유틸리티 */
.text-center {
    text-align: center;
}

.text-gray-500 {
    color: #6b7280;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
