/* Admin Dashboard Styles with Tailwind */

/* ========== 통계 카드 ========== */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.2s ease-in-out;
}

.stat-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-card-body {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    min-width: 2.5rem;
}

.stat-card-primary .stat-icon { background-color: #2563eb; }
.stat-card-success .stat-icon { background-color: #16a34a; }
.stat-card-info .stat-icon { background-color: #0284c7; }
.stat-card-warning .stat-icon { background-color: #ca8a04; }
.stat-card-danger .stat-icon { background-color: #dc2626; }

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.change-value {
    font-weight: 600;
}

.change-value.text-success {
    color: #16a34a;
}

.change-value.text-warning {
    color: #ca8a04;
}

.change-value.text-info {
    color: #0284c7;
}

.change-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 400;
}

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

.card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.card-body {
    padding: 1.5rem;
}

.card-body p,
.card-body div {
    margin: 0;
    color: #111827;
}

/* ========== 테이블 스타일 ========== */
.table {
    width: 100%;
    font-size: 0.875rem;
    margin: 0;
    border-collapse: collapse;
}

.table thead {
    background-color: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.table th {
    font-weight: 600;
    color: #111827;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
}

.table td {
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

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

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ========== 테이블 순번 셀 ========== */
.table td:first-child {
    font-weight: 500;
}

.table td:first-child strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.table td:first-child small {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ========== 배지 ========== */
.badge {
    display: inline-block;
    padding: 0.375rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #cffafe;
    color: #0c4a6e;
}

/* ========== 버튼 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: 1px solid #2563eb;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-outline-primary {
    background-color: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-outline-primary:hover {
    background-color: #eff6ff;
}

.btn-outline-secondary {
    background-color: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
}

.btn-outline-secondary:hover {
    background-color: #f3f4f6;
}

.btn-group {
    display: flex;
    gap: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid #e5e7eb;
}

.btn-group .btn:first-child {
    border-radius: 0.5rem 0 0 0.5rem;
}

.btn-group .btn:last-child {
    border-radius: 0 0.5rem 0.5rem 0;
    border-right: 1px solid #d1d5db;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ========== 페이지네이션 ========== */
.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-link {
    padding: 0.375rem 0.625rem;
    color: #2563eb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.page-link:hover {
    background-color: #f9fafb;
    border-color: #2563eb;
}

.page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.page-item.disabled .page-link {
    color: #d1d5db;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* ========== 폼 요소 ========== */
.form-label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
}

.form-control,
.form-select {
    width: 100%;
    border: 1px solid #d1d5db;
    color: #111827;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    background-color: white;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* ========== 알림 ========== */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border: 1px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fed7aa;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0c4a6e;
    border-color: #bae6fd;
}

.alert-dismissible {
    padding-right: 2rem;
    position: relative;
}

.btn-close {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 0;
}

.btn-close:hover {
    opacity: 0.8;
}

.btn-close::before,
.btn-close::after {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 0.125rem;
    background-color: currentColor;
    border-radius: 0.0625rem;
}

.btn-close::before {
    transform: rotate(45deg);
}

.btn-close::after {
    transform: rotate(-45deg);
}

/* ========== 모달 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 500px;
    margin: 1.75rem auto;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

.modal-content {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.75rem 0.75rem 0 0;
}

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

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 70vh;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1rem 0 0.5rem 0;
}

.modal-body p {
    margin: 0.5rem 0;
}

.modal-body .form-label {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    width: 100%;
    background-color: white;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-body .form-group {
    margin-bottom: 1.25rem;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body .info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body .info-group {
    display: flex;
    flex-direction: column;
}

.modal-body .info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.modal-body .info-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.modal-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    border-radius: 0 0 0.75rem 0.75rem;
}

.modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modal-footer .btn-outline-secondary {
    border: 1px solid #cbd5e1;
    color: #64748b;
    background-color: white;
}

.modal-footer .btn-outline-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

.modal-footer .btn-primary {
    background-color: #2563eb;
    border: 1px solid #2563eb;
    color: white;
}

.modal-footer .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* ========== 스피너 ========== */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border: 0.2em solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    display: inline-block;
}

.text-center .spinner-border {
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 상태 표시기 ========== */
.status-active {
    color: #16a34a;
    font-weight: 500;
}

.status-active::before {
    content: '●';
    margin-right: 0.5rem;
    font-size: 0.6rem;
}

.status-inactive {
    color: #dc2626;
    font-weight: 500;
}

.status-inactive::before {
    content: '●';
    margin-right: 0.5rem;
    font-size: 0.6rem;
}

/* ========== 아바타 ========== */
.avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar img,
.avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ========== 코드 블록 ========== */
code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: #e11d48;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

pre code {
    background-color: transparent;
    color: #f3f4f6;
    padding: 0;
}

/* ========== 유틸리티 클래스 ========== */
.text-center {
    text-align: center;
}

.text-success {
    color: #16a34a;
}

.text-warning {
    color: #ca8a04;
}

.text-info {
    color: #0284c7;
}

.text-danger {
    color: #dc2626;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.d-flex { display: flex; }
.d-none { display: none; }

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== Input Group ========== */
.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.input-group > .form-control,
.input-group > .form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #111827;
    text-align: center;
    white-space: nowrap;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
}

.input-group > :not(:last-child) {
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group > :last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* ========== Dropdown ========== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    color: #111827;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
}

/* ========== Row and Col (Bootstrap-like) ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: -0.5rem;
}

.row > [class*="col-"] {
    flex: 0 0 auto;
    padding: 0.5rem;
}

.col-12 { flex: 0 0 100%; }

@media (min-width: 640px) {
    .col-sm-6 { flex: 0 0 50%; }
}

@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.33%; }
    .col-md-6 { flex: 0 0 50%; }
    .col-md-8 { flex: 0 0 66.66%; }
}

@media (min-width: 1024px) {
    .col-lg-3 { flex: 0 0 25%; }
    .col-lg-4 { flex: 0 0 33.33%; }
    .col-lg-6 { flex: 0 0 50%; }
    .col-lg-8 { flex: 0 0 66.66%; }
}

@media (min-width: 1280px) {
    .col-xl-3 { flex: 0 0 25%; }
    .col-xl-8 { flex: 0 0 66.66%; }
}

/* ========== Chart Container ========== */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

canvas {
    background-color: white !important;
}

/* ========== Scrollbar styling ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== System Status ========== */
.system-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.status-item:last-child {
    border-bottom: none;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.status-success {
    background-color: #16a34a;
}

.status-indicator.status-warning {
    background-color: #ca8a04;
}

.status-indicator.status-danger {
    background-color: #dc2626;
}

.status-content {
    flex: 1;
    min-width: 0;
}

.status-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.status-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.status-action {
    flex-shrink: 0;
}

.backup-status {
    margin-top: 1rem;
    padding-top: 1rem;
}

.backup-status h6 {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

/* ========== Users List ========== */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.user-item:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
}

.user-name a {
    color: inherit;
    transition: color 0.2s ease;
}

.user-name a:hover {
    color: #2563eb;
}

.user-email {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-type {
    display: inline-block;
    margin-top: 0.25rem;
}

.user-type .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.user-meta {
    flex-shrink: 0;
    text-align: right;
}

.user-meta small {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
}

/* ========== Empty State ========== */
.empty-state {
    padding: 2rem 1rem;
}

.empty-state i {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
}

/* ========== Quick Actions ========== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.quick-action-item:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.action-icon.bg-primary {
    background-color: #2563eb;
}

.action-icon.bg-success {
    background-color: #16a34a;
}

.action-icon.bg-info {
    background-color: #0284c7;
}

.action-icon.bg-warning {
    background-color: #ca8a04;
}

.action-icon.bg-danger {
    background-color: #dc2626;
}

.action-content {
    flex: 1;
}

.action-content h6 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

/* ========== Cards ========== */
.card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.75rem 0.75rem 0 0;
}

.card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.action-buttons .btn:hover {
    background-color: #dbeafe;
    border-color: #0284c7;
    color: #0284c7;
}

/* ========== Modal Enhancements ========== */
/* 이미 위에서 정의됨 - 중복 제거 */

/* ========== Spinner in Modal ========== */
.modal-body .spinner-border {
    color: #2563eb;
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25em;
}

.modal-body .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== User Info Display in Modal ========== */
.user-info-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.user-info-field {
    display: flex;
    flex-direction: column;
}

.user-info-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-info-field value,
.user-info-field .value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
    word-break: break-word;
}

.user-info-field .value.empty {
    color: #94a3b8;
    font-style: italic;
}

.user-info-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.user-info-section:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.user-info-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-indent: 0;
}

/* ========== 모달 배경 클릭 방지 ========== */
/* 모든 모달에서 배경을 클릭해도 닫히지 않도록 처리 */
.modal-backdrop {
    pointer-events: none; /* 배경에서 클릭 감지 안 함 */
}

.modal-backdrop > div {
    pointer-events: auto; /* 모달 내용에서는 클릭 감지 함 */
}
