/* Custom component classes - equivalent to Tailwind @apply */

.btn-primary {
  background-color: #4c6ef5;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { background-color: #4263eb; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-danger {
  background-color: #dc2626;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-danger:hover { background-color: #b91c1c; }

.btn-success {
  background-color: #059669;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-success:hover { background-color: #047857; }

.btn-warning {
  background-color: #f59e0b;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-warning:hover { background-color: #d97706; }

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover { background-color: #d1d5db; }

.card {
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  padding: 1.5rem;
}

.input-field {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.2s;
  font-size: 0.875rem;
  background-color: #fff;
}
.input-field:focus {
  border-color: #4c6ef5;
  box-shadow: 0 0 0 2px rgba(76,110,245,0.2);
}

.table-header {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-cell {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: #374151;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #fef3c7;
  color: #92400e;
}

.badge-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-info {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #dbeafe;
  color: #1e40af;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  color: #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s;
  text-decoration: none;
}
.sidebar-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}
.sidebar-link.active {
  color: #fff;
  background-color: rgba(76,110,245,0.8);
}
