* {
  font-family: 'Noto Sans KR', sans-serif;
}

.hidden { display: none !important; }

/* Loader */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3B82F6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast */
.toast {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Tab active state */
.tab-active {
  border-bottom: 3px solid #3B82F6;
  color: #3B82F6;
  font-weight: 600;
}

/* Role badges */
.role-admin { background: #DC2626; }
.role-manager { background: #2563EB; }
.role-staff { background: #059669; }

/* Number input spinner hidden */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Table row hover */
tbody tr:hover {
  background-color: #f9fafb;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Button hover effect */
button:not(:disabled):hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Card hover */
.card-hover:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Status badges */
.status-pending {
  background-color: #FEF3C7;
  color: #92400E;
}

.status-completed {
  background-color: #D1FAE5;
  color: #065F46;
}

/* Modal overlay */
.modal-overlay {
  backdrop-filter: blur(2px);
}

/* Responsive table */
@media (max-width: 768px) {
  .tab-btn {
    font-size: 12px;
    padding: 12px 8px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px 4px;
  }
}

/* Statement table */
.statement-table {
  border-collapse: collapse;
  font-size: 11px;
}

.statement-table th,
.statement-table td {
  border: 1px solid #333;
  padding: 4px 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.statement-table th {
  background-color: #d4a574;
  font-weight: 600;
}

/* Print styles */
@media print {
  .no-print { display: none !important; }
  nav, header, .tab-btn { display: none !important; }
  #tab-statement { display: block !important; }
}

/* Input focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: #3B82F6;
  border-color: #3B82F6;
}

/* Tag/Chip style */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background-color: #E5E7EB;
  color: #374151;
}

.tag button {
  margin-left: 4px;
  padding: 2px;
  color: #6B7280;
}

.tag button:hover {
  color: #DC2626;
}
