/* 전체 스타일 */
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* 페이지 타이틀 */
.page-title {
    font-size: 1.75rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0d6efd;
}

/* 카드 스타일 */
.content-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* 테이블 스타일 */
.vote-table {
    margin-bottom: 0;
}

.vote-table th {
    background-color: #e7f1ff;
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.vote-table td {
    padding: 1rem;
    vertical-align: middle;
}

.vote-table tr:hover {
    background-color: #f8f9fa;
}

.vote-link {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.vote-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* 상태 배지 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.75rem;
}

.status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-closed {
    background-color: #f8d7da;
    color: #842029;
}

/* 버튼 스타일 */
.btn-create {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-create:hover {
    background-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 빈 상태 스타일 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* 페이지네이션 스타일 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-btn.disabled,
.page-btn[disabled] {
    opacity: 0.65;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    box-shadow: none;
    transform: none;
}

/* 필터 스타일 */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-dropdown {
    min-width: 150px;
}

/* 서비스 아이콘 스타일 */
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e7f1ff;
    color: #0d6efd;
    border-radius: 0.5rem;
    margin: 0 auto 0.5rem;
    font-size: 1.5rem;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-dropdown {
        width: 100%;
    }

    .vote-table th:nth-child(3),
    .vote-table td:nth-child(3) {
        display: none;
    }
}

footer a {
    color: #333;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0D6EFD !important;
    transition: color 0.3s ease;
}
