/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Design Tokens */
:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --sidebar: #f6f7fb;
  --muted: #6b7280;
  --line: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --brand: #6c5ce7;
  --brand-600: #5b4bd6;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
}

/* Base Styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Utility Classes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  min-height: 2.5rem;
}

.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgb(99 102 241 / 0.5);
}

.btn-primary {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
}

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

.btn-secondary {
  background-color: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

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

.btn-subtle {
  background-color: transparent;
  color: #6b7280;
}

.btn-subtle:hover {
  color: #111827;
  background-color: #f3f4f6;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-soon {
  margin-left: auto;
  background-color: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgb(139 92 246 / 0.2);
}

.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}

.form-select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgb(139 92 246 / 0.2);
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 42rem;
  width: 100%;
  margin: 0 1rem;
  max-height: 90vh;
  overflow-y: auto;
}

.tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

.tab:hover {
  color: #111827;
  border-bottom-color: #d1d5db;
}

.tab-active {
  color: #8b5cf6;
  border-bottom-color: #8b5cf6;
}

.empty-state {
  text-align: center;
  padding: 3rem 0;
}

.empty-state-icon {
  margin: 0 auto;
  height: 3rem;
  width: 3rem;
  color: #8b5cf6;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.empty-state-subtitle {
  color: #4b5563;
}

/* Navigation Styles */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.nav-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  align-self: center;
}

.nav-item-active {
  background-color: #f3f4f6;
  color: #111827;
}

.nav-item-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.125rem;
  background-color: #111827;
}

.nav-item-tenant {
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  margin-bottom: 1rem;
}

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

.btn-danger {
  border-color: #fca5a5;
  background-color: #fef2f2;
  color: #b91c1c;
}

.btn-danger:hover {
  background-color: #fef2f2;
}

.btn-danger:focus {
  box-shadow: 0 0 0 2px rgb(239 68 68 / 0.5);
}
