/* ABLY SaaS - Custom styles */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Button base */
.btn-primary {
  background: #ff005c;
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s;
  font-size: 0.875rem;
}
.btn-primary:hover {
  background: #e60052;
}
.btn-primary:disabled {
  background: #ffb3cc;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s;
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
}

.btn-ghost {
  background: transparent;
  color: #757575;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.15s;
  font-size: 0.875rem;
}
.btn-ghost:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.btn-danger {
  background: white;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s;
  font-size: 0.875rem;
}
.btn-danger:hover {
  background: #ffebee;
  border-color: #ef5350;
}

/* Form */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  background: white;
  font-size: 0.875rem;
  transition: border 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #ff005c;
  box-shadow: 0 0 0 3px rgba(255, 0, 92, 0.1);
}
.form-input:disabled {
  background: #fafafa;
  color: #9e9e9e;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #424242;
  margin-bottom: 0.375rem;
}

/* Card */
.card {
  background: white;
  border: 1px solid #eeeeee;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card-compact {
  background: white;
  border: 1px solid #eeeeee;
  border-radius: 0.75rem;
  padding: 1rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.badge-active {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-paused {
  background: #fff8e1;
  color: #f57c00;
}
.badge-cancelled {
  background: #ffebee;
  color: #c62828;
}
.badge-completed {
  background: #e3f2fd;
  color: #1565c0;
}
.badge-online {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-busy {
  background: #fff8e1;
  color: #f57c00;
}
.badge-offline {
  background: #f5f5f5;
  color: #757575;
}
.badge-pink {
  background: #ffe5ee;
  color: #ff005c;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #757575;
  text-align: left;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #eeeeee;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.875rem;
}
.table tbody tr:hover {
  background: #fafafa;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: #f5f5f5;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: #ff005c;
  transition: width 0.3s;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.2s;
}
.toast-success {
  background: #2e7d32;
  color: white;
}
.toast-error {
  background: #c62828;
  color: white;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}
.section-subtitle {
  font-size: 0.875rem;
  color: #757575;
  margin-top: 0.25rem;
}
