/* 전역 스타일 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 네비게이션 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* 대시보드 스타일 */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color);
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color);
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color);
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color);
}

.text-xs {
    font-size: 0.875rem;
}

.font-weight-bold {
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-gray-800 {
    color: #5a5c69;
}

/* 테이블 스타일 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #5a5c69;
    border-top: none;
    background-color: #f8f9fa;
}

/* 버튼 스타일 */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 폼 스타일 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* 페이지네이션 */
.pagination {
    margin-top: 1rem;
}

/* 모달 스타일 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* 뱃지 스타일 */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

/* 푸터 스타일 */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group-sm .btn {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* 로그인/회원가입 페이지 */
.card.shadow {
    margin-top: 2rem;
}

/* 알림 스타일 */
.alert {
    border-radius: 0.375rem;
    border: none;
}

/* 차트 컨테이너 */
canvas {
    max-height: 300px;
}

/* 파일 업로드 영역 */
input[type="file"] {
    cursor: pointer;
}

/* 드롭다운 메뉴 */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 검색 폼 */
#searchForm {
    transition: all 0.3s ease-in-out;
}

/* 로딩 스피너 */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.1rem;
}

/* 빈 상태 메시지 */
.text-center {
    color: #6c757d;
}

/* 액션 버튼 그룹 */
.btn-group-sm > .btn {
    margin: 0 0.125rem;
}