/* Bootstrap CSS Framework */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

/* Show of Hands Custom Variables */
:root {
  --soh-purple-900: #581c87;
  --soh-purple-800: #7c2d92;
  --soh-purple-700: #7c3aed;
  --soh-purple-600: #8b5cf6;
  --soh-orange-400: #fb923c;
  --soh-white: #ffffff;
  --soh-gray-100: #f3f4f6;
  --soh-gray-200: #e5e7eb;
  --soh-gray-600: #6b7280;
  --soh-gray-700: #374151;
  --soh-gray-900: #111827;
}

/* Show of Hands Brand Gradient */
.soh-gradient-bg {
  background: linear-gradient(135deg, var(--soh-purple-900), var(--soh-purple-800), var(--soh-purple-900));
  min-height: 100vh;
}

/* Authentication Layout Styles */
.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-header {
  text-align: center;
  margin-bottom: 3rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-brand-icon {
  font-size: 4rem;
  color: var(--soh-orange-400);
  margin-right: 1rem;
}

.auth-brand-text {
  font-size: 3rem;
  font-weight: bold;
  color: var(--soh-white);
  letter-spacing: 0.1em;
  margin: 0;
}

.auth-brand-text .accent {
  color: var(--soh-orange-400);
}

.auth-subtitle {
  color: #d8b4fe;
  font-size: 1.125rem;
  margin: 0;
}

.auth-card {
  background: var(--soh-white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
  width: 100%;
  max-width: 28rem;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--soh-gray-900);
  margin: 0 0 0.5rem 0;
}

.auth-card-subtitle {
  color: var(--soh-gray-600);
  margin: 0;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
}

.auth-footer-text {
  color: #c4b5fd;
  font-size: 0.875rem;
}

/* Dashboard Layout Styles */
.dashboard-layout {
  min-height: 100vh;
}

.dashboard-header {
  background: var(--soh-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.dashboard-nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.dashboard-brand {
  display: flex;
  align-items: center;
}

.dashboard-brand-icon {
  color: var(--soh-orange-400);
  margin-right: 0.75rem;
  font-size: 2rem;
}

.dashboard-brand-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--soh-gray-900);
  margin: 0;
}

.dashboard-brand-text .accent {
  color: var(--soh-orange-400);
}

.dashboard-user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-user-greeting {
  color: var(--soh-gray-700);
}

.dashboard-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.dashboard-title {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--soh-white);
  margin: 0;
  text-align: center;
  margin-bottom: 2rem;
}

.dashboard-subtitle {
  margin-top: 0.5rem;
  color: #d8b4fe;
  font-size: 1.125rem;
  text-align: center;
}

.dashboard-footer {
  text-align: center;
  padding: 2rem;
}

.dashboard-footer-text {
  color: #c4b5fd;
  font-size: 0.875rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--soh-gray-700);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--soh-gray-200);
  border-radius: 0.375rem;
  font-size: 1rem;
  background-color: var(--soh-white);
  color: var(--soh-gray-900);
}

.form-control:focus {
  outline: none;
  border-color: var(--soh-purple-600);
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Button Styles */
.btn-soh-primary {
  width: 100%;
  background-color: var(--soh-purple-700);
  color: var(--soh-white);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.btn-soh-primary:hover {
  background-color: #6d28d9;
  color: var(--soh-white);
}

.btn-soh-logout {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: var(--soh-white);
  background-color: var(--soh-purple-700);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-soh-logout:hover {
  background-color: #6d28d9;
  color: var(--soh-white);
  text-decoration: none;
}

/* Card Styles */
.info-card {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
}

.info-card-header {
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
}

.info-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.info-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #1e40af;
}

.status-card {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
}

.status-card-header {
  font-weight: 600;
  color: #14532d;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
}

.status-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #15803d;
}

.status-active {
  color: #16a34a;
}

/* Quick Actions */
.quick-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--soh-gray-200);
}

.quick-actions-title {
  font-weight: 600;
  color: var(--soh-gray-900);
  margin: 0 0 1rem 0;
}

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

.quick-action-btn {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 500;
}

.quick-action-btn.purple {
  background: #f3e8ff;
  color: #6b21a8;
}

.quick-action-btn.purple:hover {
  background: #e9d5ff;
}

.quick-action-btn.orange {
  background: #fed7aa;
  color: #c2410c;
}

.quick-action-btn.orange:hover {
  background: #fdba74;
}

.quick-action-btn.indigo {
  background: #e0e7ff;
  color: #3730a3;
}

.quick-action-btn.indigo:hover {
  background: #c7d2fe;
}

/* Flash Messages */
.flash-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  max-width: 350px;
}

.flash-message {
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideIn 0.3s ease-out;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.flash-message:hover {
  opacity: 0.9;
}

.flash-message.info {
  background: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

.flash-message.error {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.flash-message.success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.flash-message.warning {
  background: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

.flash-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.flash-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.flash-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.flash-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.flash-close:hover {
  opacity: 1;
}

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

/* Use the data attribute for dark mode  */
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));

/* Make LiveView wrapper divs transparent for layout */
[data-phx-session], [data-phx-teleported-src] { display: contents }

/* This file is for your main application CSS */
