/* Base Styles & Tailwind Reset */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
}

/* Prevent horizontal overflow globally */
div, section, article, aside, header, footer, main, nav, form {
  max-width: 100%;
  box-sizing: border-box;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  margin: 0;
  line-height: inherit;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }

/* Width */
.w-0 { width: 0; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-full { width: 100%; }

/* Height */
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.ml-5 { margin-left: 1.25rem; }

/* Padding */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Spacing */
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Borders */
.border-l-4 { border-left-width: 4px; }
.border-green-500 { border-color: #10b981; }
.border-yellow-500 { border-color: #f59e0b; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-r { border-top-right-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }

/* Background */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-green-500 { background-color: #10b981; }
.bg-yellow-500 { background-color: #f59e0b; }
.bg-purple-500 { background-color: #a855f7; }
.bg-primary-500 { background-color: #667eea; }

/* Text Colors */
.text-white { color: #ffffff; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-yellow-600 { color: #d97706; }
.text-primary-600 { color: #667eea; }
.text-primary-900 { color: #4c1d95; }

/* Text Size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* Font Weight */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Shadows */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* Other */
.max-w-7xl { max-width: 80rem; }
.min-w-0 { min-width: 0; }
.leading-7 { line-height: 1.75rem; }

/* Dividers */
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-200 > * + * { border-color: #e5e7eb; }

/* Hover */
.hover\:text-primary-700:hover { color: #764ba2; }
.hover\:text-primary-900:hover { color: #4c1d95; }

/* Responsive */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:tracking-tight { letter-spacing: -0.025em; }
  .sm\:truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:ml-4 { margin-left: 1rem; }
  .md\:mt-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:pl-64 { padding-left: 16rem; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Main Content Layout - Regras movidas para sidebar.css para evitar conflitos */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  line-height: 1.5;
}

/* Fix for button_to forms */
form[data-turbo="false"] {
  display: inline;
}

form[data-turbo="false"] button {
  font-family: inherit;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

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

.btn-secondary {
  background-color: #6b7280;
  color: #ffffff;
}

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

.btn-success {
  background-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

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

.btn-outline {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
}

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

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-group-right {
  justify-content: flex-end;
}

/* Forms & Inputs */
.form-wrapper {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  max-width: 42rem;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.form-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-submit {
  padding: 0.5rem 1.5rem;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit:hover {
  background-color: #1d4ed8;
}

.btn-cancel {
  padding: 0.5rem 1.5rem;
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

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

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox input,
.form-radio input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}






/* Tables */
.table-wrapper {
  overflow-x: auto;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

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

.table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  color: #111827;
}

.table tbody tr:hover {
  background-color: #f9fafb;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-gray {
  background-color: #f3f4f6;
  color: #374151;
}

/* Action Buttons */
.table-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: #ffffff;
  color: #374151;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-icon-danger {
  border-color: #fca5a5;
  color: #dc2626;
}

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






/* ========================================
   NAVBAR STYLES - Integrado com Sidebar
   ======================================== */

/* Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 30;
  transition: padding-left 0.3s ease-in-out;
}

/* Desktop: Ajustar para sidebar */
@media (min-width: 1024px) {
  .navbar {
    left: 256px; /* Sidebar width */
  }
}

/* Mobile: Largura total */
@media (max-width: 1023px) {
  .navbar {
    left: 0;
  }
}

/* Navbar Inner Container */
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

/* ========================================
   LEFT SECTION - Logo
   ======================================== */

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b82f6;
  margin: 0;
}

.navbar-badge {
  display: none;
  font-size: 0.75rem;
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

@media (min-width: 640px) {
  .navbar-badge {
    display: inline-block;
  }
}

/* ========================================
   CENTER SECTION - Search
   ======================================== */

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 600px;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 3rem;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-input:hover {
  background-color: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  outline: none;
}

.search-input:focus ~ .search-icon {
  color: #3b82f6;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 384px;
  overflow-y: auto;
  z-index: 50;
}

.search-results:not(.hidden) {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RIGHT SECTION - User Menu
   ======================================== */

.navbar-right {
  display: flex;
  align-items: center;
  min-width: 150px;
  justify-content: flex-end;
}

.user-menu {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-menu-button:hover {
  background-color: #f9fafb;
}

.user-menu-button:focus {
  outline: none;
  ring: 2px;
  ring-color: #3b82f6;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.user-info {
  display: none;
  text-align: left;
}

@media (min-width: 768px) {
  .user-info {
    display: block;
  }
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.25;
}

.user-role {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.user-role.admin {
  color: #3b82f6;
}

.user-chevron {
  display: none;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .user-chevron {
    display: block;
  }
}

/* ========================================
   USER DROPDOWN
   ======================================== */

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 16rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  z-index: 100;
  opacity: 0;
  transform: scale(0.95);
  transform-origin: top right;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.user-dropdown:not(.hidden) {
  opacity: 1;
  transform: scale(1);
}

.dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.dropdown-user-info {
  margin-bottom: 0.5rem;
}

.dropdown-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-email {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.125rem 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  background-color: #f3e8ff;
  color: #7c3aed;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.dropdown-menu {
  padding: 0.25rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

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

.dropdown-item i {
  color: #9ca3af;
}

.dropdown-footer {
  padding: 0.25rem 0;
  border-top: 1px solid #f3f4f6;
}

.dropdown-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #dc2626;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-logout:hover {
  background-color: #fef2f2;
}

.dropdown-logout i {
  color: #dc2626;
}
/* Sidebar Styles */

/* Logo e Branding */
aside[data-sidebar-target="sidebar"] .border-b {
  background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
}

/* Sidebar Container */
aside[data-sidebar-target="sidebar"] {
  position: fixed;
  left: 0;
  top: 4rem; /* Navbar height (64px) */
  width: 16rem; /* 256px */
  height: calc(100vh - 4rem);
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  z-index: 20; /* Abaixo do navbar (z-30) */
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
}

/* Desktop: Sidebar sempre visível por padrão */
@media (min-width: 1024px) {
  aside[data-sidebar-target="sidebar"] {
    transform: translateX(0);
  }
  
  /* Quando fechado em desktop */
  aside[data-sidebar-target="sidebar"].closed {
    transform: translateX(-100%);
  }
}

/* Mobile - Esconder sidebar por padrão */
@media (max-width: 1023px) {
  aside[data-sidebar-target="sidebar"] {
    transform: translateX(-100%);
    z-index: 50; /* Acima de tudo em mobile */
  }
  
  /* Quando aberto em mobile */
  aside[data-sidebar-target="sidebar"].translate-x-0 {
    transform: translateX(0);
  }
}

/* Overlay para mobile */
[data-sidebar-target="overlay"] {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  transition: opacity 0.3s ease-in-out;
}

/* Scrollbar customization */
aside[data-sidebar-target="sidebar"]::-webkit-scrollbar {
  width: 6px;
}

aside[data-sidebar-target="sidebar"]::-webkit-scrollbar-track {
  background: transparent;
}

aside[data-sidebar-target="sidebar"]::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

aside[data-sidebar-target="sidebar"]::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Nav Item Styles */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #6b7280;
  text-decoration: none;
  position: relative;
  margin-bottom: 0.125rem;
  cursor: pointer;
}

.nav-item:hover {
  background-color: #f9fafb;
  color: #3b82f6;
  transform: translateX(2px);
}

.nav-item.active {
  background-color: #dbeafe;
  color: #2563eb;
  box-shadow: 0 1px 2px 0 rgba(59, 130, 246, 0.2);
  border-left: 3px solid #3b82f6;
  padding-left: calc(0.875rem - 3px);
}

.nav-icon {
  display: flex;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.nav-item:hover svg,
.nav-item.active svg {
  opacity: 1;
}

.nav-item.active svg {
  stroke-width: 2.5;
}

.nav-text {
  flex: 1;
  font-weight: 500;
}

/* Main Content - Única fonte de verdade para layout */
.main-content {
  padding-top: 4rem !important; /* Navbar height (64px) */
  min-height: calc(100vh - 4rem);
  position: relative;
  transition: margin-left 0.3s ease-in-out;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-content main {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.main-content > main > div {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Forçar formulários a usarem toda a largura disponível */
.main-content .max-w-3xl,
.main-content .max-w-7xl,
.main-content .max-w-4xl,
.main-content .max-w-5xl,
.main-content .max-w-6xl {
  max-width: 100% !important;
  width: 100% !important;
}

.main-content .professional-form-page,
.main-content .appointment-new-page,
.main-content .services-container,
.main-content .professionals-page,
.main-content .availabilities-container,
.main-content .waitlist-container,
.main-content .blocked-dates-container,
.main-content .settings-container {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Garantir que formulários tenham padding adequado */
.main-content .professional-form-page,
.main-content .appointment-new-page {
  padding: 1.5rem !important;
}

/* Desktop: Conteúdo com margem para sidebar */
@media (min-width: 1024px) {
  .main-content {
    margin-left: 16rem !important; /* Sidebar width (256px) */
    max-width: calc(100vw - 16rem) !important;
  }
  
  /* Quando sidebar fechado, remover margem */
  body.sidebar-closed .main-content {
    margin-left: 0 !important;
    max-width: 100vw !important;
  }
}

/* Mobile - Sem margem */
@media (max-width: 1023px) {
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
}
/* Dashboard & Admin Pages */
.admin-container {
  padding: 2.5rem 0;
}

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

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: #6b7280;
}

/* Enhanced Dashboard Styles */
.dashboard-container {
  padding: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Header Section */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.dashboard-header p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
  transition: all 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Stat Cards Enhanced */
.stats-grid .card {
  margin-bottom: 0;
}

.stat-card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.stat-icon.primary {
  background-color: #3b82f6;
}

.stat-icon.success {
  background-color: #10b981;
}

.stat-icon.warning {
  background-color: #f59e0b;
}

.stat-icon.purple {
  background-color: #8b5cf6;
}

.stat-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.stat-details {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* Today's Appointments */
.appointment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid;
  background-color: #f9fafb;
  transition: all 0.15s ease;
}

.appointment-item:hover {
  background-color: #f3f4f6;
  transform: translateX(2px);
}

.appointment-item.confirmed {
  border-left-color: #10b981;
}

.appointment-item.pending {
  border-left-color: #f59e0b;
}

.appointment-item.cancelled {
  border-left-color: #ef4444;
}

.appointment-info {
  flex: 1;
  min-width: 0;
}

.appointment-client {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.appointment-service {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.appointment-phone {
  font-size: 0.875rem;
  color: #9ca3af;
}

.appointment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.appointment-time {
  text-align: right;
}

.appointment-time-primary {
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
}

.appointment-duration {
  font-size: 0.75rem;
  color: #9ca3af;
}

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

.status-badge.confirmed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background-color: #fed7aa;
  color: #92400e;
}

.status-badge.cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-badge.completed {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-badge.no_show {
  background-color: #f3f4f6;
  color: #374151;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.card-body {
  padding: 0;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:pl-64 { padding-left: 16rem; }
}

/* Stats Cards */
.stat-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

/* SVG Icons */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* DL/DT/DD */
dl {
  margin: 0;
}

dt {
  font-weight: 500;
}

dd {
  margin: 0;
}

/* Table inside dashboard */
.table thead {
  background-color: #f9fafb;
}

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

.table tbody td {
  padding: 1rem;
  font-size: 0.875rem;
  color: #111827;
}

.table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.table tbody tr:hover {
  background-color: #f9fafb;
}

/* Sidebar Menu */
.sidebar {
  position: fixed;
  top: 4rem; /* Height of navbar */
  left: 0;
  width: 16rem;
  height: calc(100vh - 4rem);
  background-color: #ffffff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
  z-index: 20;
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }
}

.sidebar-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  flex: 1;
  margin-top: 2rem;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #374151;
}

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

.nav-item.active {
  background-color: #f0f4ff;
  color: #667eea;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:not(.active) .nav-item-icon {
  color: #9ca3af;
}

.nav-item:hover .nav-item-icon,
.nav-item.active .nav-item-icon {
  color: #667eea;
}

.sidebar-section {
  margin-top: auto;
  padding-top: 1rem;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Main content - Regras movidas para sidebar.css para evitar conflitos */

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px dashed #e5e7eb;
  border-radius: 0.75rem;
  min-height: 200px;
}

.empty-state::before {
  content: "📅";
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}

/* Dashboard specific links */
a {
  color: inherit;
  text-decoration: none;
}

a.text-primary-600 {
  color: #667eea;
}

a.text-primary-600:hover {
  color: #764ba2;
}

/* Admin Dashboard Styles - Modern Design */

/* Container */
.admin-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

/* Header Melhorado */
.dashboard-header {
  margin-bottom: 2.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.header-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

.header-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-text p {
  color: #64748b;
  font-size: 1.125rem;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #16a34a;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Stats Grid Redesenho */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card--blue::before {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card--green::before {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.stat-card--yellow::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.stat-card--red::before {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card--blue .stat-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.stat-card--green .stat-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.stat-card--yellow .stat-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.stat-card--red .stat-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.stat-value--success {
  color: #059669;
}

.stat-value--warning {
  color: #d97706;
}

.stat-value--error {
  color: #dc2626;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.stat-trend--positive {
  color: #059669;
}

.stat-trend--negative {
  color: #dc2626;
}

/* Delivery Rate Card */
.delivery-rate-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.delivery-rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.live-badge {
  padding: 0.25rem 0.75rem;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.delivery-summary {
  display: flex;
  gap: 1.5rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.summary--success {
  color: #16a34a;
}

.summary--error {
  color: #dc2626;
}

.summary-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.summary--success .summary-dot {
  background: #22c55e;
}

.summary--error .summary-dot {
  background: #ef4444;
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-bar {
  flex: 1;
  height: 1.5rem;
  background: #f1f5f9;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 1rem;
  transition: width 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.progress-text {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.progress-percentage {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.delivery-details p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
}

.info-card:nth-child(2)::before {
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.type-badge {
  padding: 0.25rem 0.75rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-badge--purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.type-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.type-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.type-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.type-dot {
  width: 0.75rem;
  height: 0.75rem;
  background: #3b82f6;
  border-radius: 50%;
}

.type-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.type-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.type-count {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  min-width: 3rem;
  text-align: right;
}

.type-bar {
  width: 4rem;
  height: 0.5rem;
  background: #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
}

.type-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 1rem;
  transition: width 0.8s ease;
}

/* General Stats */
.general-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(4px);
}

.stat-item--highlight {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #93c5fd;
}

.stat-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.stat-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.stat-dot--purple {
  background: #8b5cf6;
}

.stat-dot--indigo {
  background: #6366f1;
}

.stat-dot--blue {
  background: #3b82f6;
}

.stat-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.stat-number--blue {
  color: #2563eb;
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Notifications Card */
.notifications-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.notifications-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6b7280 0%, #4b5563 100%);
}

.notifications-card .card-header {
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
}

.count-badge {
  padding: 0.25rem 0.75rem;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

.notifications-list {
  padding: 1.5rem;
}

.notification-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.notification-item:last-child {
  margin-bottom: 0;
}

.notification-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.notification-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.notification-meta h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.notification-time {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.status-badge {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notification-details {
  padding: 1.5rem;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.detail-value--empty {
  color: #cbd5e1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: #cbd5e1;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-dashboard {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-dashboard {
    padding: 1.5rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-dashboard {
    padding: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .header-text h1 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .delivery-summary {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-text h1 {
    font-size: 1.75rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .delivery-rate-card {
    padding: 1.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
  }
}

/* Focus States */
button:focus,
a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .admin-dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .header-content,
  .stat-card,
  .delivery-rate-card,
  .info-card,
  .notifications-card {
    background: #1e293b;
    border-color: #334155;
  }
  
  .type-item,
  .stat-item,
  .notification-item {
    background: #334155;
    border-color: #475569;
  }
  
  .header-text h1,
  .stat-value,
  .type-count,
  .stat-number,
  .notification-meta h3,
  .detail-value {
    color: #f1f5f9;
  }
  
  .header-text p,
  .stat-label,
  .type-name,
  .stat-info,
  .notification-time,
  .detail-label {
    color: #cbd5e1;
  }
}
/* ==========================================================================
   APPOINTMENTS PAGE - Modern Card-Based Layout
   ========================================================================== */

/* Page Container */
.appointments-page {
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #f8fafc;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.appointments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.appointments-header-content {
  flex: 1;
}

.appointments-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.appointments-subtitle {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0.25rem 0 0 0;
}

.appointments-header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.apt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.apt-btn svg {
  flex-shrink: 0;
}

.apt-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.apt-btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.apt-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apt-btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* ==========================================================================
   FILTERS
   ========================================================================== */
.appointments-filters-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.appointments-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.apt-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.apt-filter:hover {
  background: #f1f5f9;
  color: #475569;
}

.apt-filter.active {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.apt-filter.active.pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.apt-filter.active.confirmed {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

.apt-filter.active.cancelled {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.apt-filter.active.completed {
  background: #e0e7ff;
  color: #3730a3;
  border-color: #a5b4fc;
}

.apt-filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.apt-filter-dot.all { background: #3b82f6; }
.apt-filter-dot.pending { background: #f59e0b; }
.apt-filter-dot.confirmed { background: #10b981; }
.apt-filter-dot.cancelled { background: #ef4444; }
.apt-filter-dot.completed { background: #6366f1; }

.apt-filter-count {
  background: #e2e8f0;
  color: #475569;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.apt-filter.active .apt-filter-count {
  background: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   APPOINTMENTS CARD & LIST
   ========================================================================== */
.appointments-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.appointments-list {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   APPOINTMENT ROW
   ========================================================================== */
.appointment-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.appointment-row:hover {
  background-color: #f8fafc;
}

.appointment-row:last-child {
  border-bottom: none;
}

/* Client Section */
.appointment-client {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.client-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.client-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.client-phone svg {
  color: #94a3b8;
  flex-shrink: 0;
}

/* Service Section */
.appointment-service {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-value {
  font-weight: 500;
  color: #334155;
  font-size: 0.9375rem;
}

/* DateTime Section */
.appointment-datetime {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.datetime-date,
.datetime-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.datetime-date {
  font-weight: 600;
  color: #1e293b;
}

.datetime-date svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.datetime-time {
  color: #64748b;
}

.datetime-time svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.duration-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

/* Status Section */
.appointment-status {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */
.appointment-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.apt-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.apt-action-btn svg {
  flex-shrink: 0;
}

.apt-action-btn.view {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.apt-action-btn.view:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.apt-action-btn.confirm {
  background: #d1fae5;
  color: #059669;
  border-color: #6ee7b7;
}

.apt-action-btn.confirm:hover {
  background: #a7f3d0;
  border-color: #34d399;
}

.apt-action-btn.cancel {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.apt-action-btn.cancel:hover {
  background: #fecaca;
  border-color: #f87171;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.appointments-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon svg {
  color: #94a3b8;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.empty-description {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0 0 1.5rem 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .appointment-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .appointment-client {
    grid-column: 1 / -1;
  }

  .appointment-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .appointments-page {
    padding: 1rem;
  }

  .appointments-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .appointments-header-actions {
    width: 100%;
  }

  .apt-btn {
    flex: 1;
    justify-content: center;
  }

  .appointments-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .apt-filter {
    flex-shrink: 0;
  }

  .appointment-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .appointment-service,
  .appointment-datetime,
  .appointment-status {
    padding-left: calc(44px + 0.875rem);
  }

  .appointment-status {
    justify-content: flex-start;
  }

  .appointment-actions {
    padding-left: calc(44px + 0.875rem);
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
  }
}

/* ==========================================================================
   LEGACY SUPPORT (keep old classes working)
   ========================================================================== */
.appointments-container {
  padding: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Pagination */
.appointments-pagination {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  display: flex;
  justify-content: center;
}

/* Status Indicators in Table */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.status-dot.pending {
  background-color: #f59e0b;
}

.status-dot.confirmed {
  background-color: #10b981;
}

.status-dot.cancelled {
  background-color: #ef4444;
}

.status-dot.completed {
  background-color: #3b82f6;
}

.status-dot.no_show {
  background-color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .appointments-container {
    padding: 1rem;
  }
  
  .appointments-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .appointments-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .filter-pills {
    gap: 0.375rem;
  }
  
  .filter-pill {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .appointments-table {
    font-size: 0.75rem;
  }
  
  .appointments-table th,
  .appointments-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .appointment-actions {
    gap: 0.25rem;
  }
  
  .action-button {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .action-button svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Loading State */
.appointments-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 0.875rem;
}

.appointments-loading::before {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
.appointments-table tbody tr {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Button Styles */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* =========================================== */
/* APPOINTMENTS NEW PAGE - MODERN DESIGN       */
/* =========================================== */

/* Container Principal */
.appointment-new-page {
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  box-sizing: border-box;
}

/* Header */
.page-header {
  margin-bottom: 1.5rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.header-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

.header-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.header-text p {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.step.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.step.active .step-label {
  color: #2563eb;
}

/* Content Layout */
.appointment-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.5rem;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Principal */
.appointment-card {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.appointment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
}

.card-header {
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.card-title svg {
  color: #3b82f6;
}

.card-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.card-badge svg {
  color: #d97706;
}

.card-body {
  padding: 1.5rem;
}

/* Form Sections */
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-section {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}

.section-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.125rem 0;
}

.section-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  z-index: 1;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 0.875rem 0.875rem 2.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  background: white;
  line-height: 1.5;
  min-height: 2.75rem;
}

.form-select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  appearance: none;
}

.form-textarea {
  padding: 0.875rem;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:invalid,
.form-select:invalid {
  border-color: #ef4444;
}

.form-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Alert */
.form-alert {
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.form-alert--error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.alert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alert-list li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.alert-list li::before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  font-weight: bold;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.info-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-card--blue {
  border-left: 4px solid #3b82f6;
}

.info-card--green {
  border-left: 4px solid #10b981;
}

.info-card--purple {
  border-left: 4px solid #8b5cf6;
}

.info-card-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.info-card--blue .info-card-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.info-card--green .info-card-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.info-card--purple .info-card-icon {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #7c3aed;
}

.info-card-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.375rem 0;
}

.info-card-content p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Sidebar */
.appointment-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Summary Card */
.summary-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.summary-header svg {
  color: #3b82f6;
  width: 1.125rem;
  height: 1.125rem;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.summary-item:hover {
  background: #f1f5f9;
}

.summary-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.summary-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

/* Quick Actions Card */
.quick-actions-card {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.quick-actions-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.quick-actions-header svg {
  color: #8b5cf6;
  width: 1.125rem;
  height: 1.125rem;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.quick-action-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateX(4px);
}

.quick-action-btn svg {
  color: #6b7280;
}

/* Help Card */
.help-card {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #bae6fd;
}

.help-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 0.75rem;
}

.help-header svg {
  color: #0284c7;
  width: 1.125rem;
  height: 1.125rem;
}

.help-content p {
  font-size: 0.8125rem;
  color: #0c4a6e;
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

.help-btn {
  width: 100%;
  padding: 0.625rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.help-btn:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-2px);
}

/* Form Actions */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  border-top: 2px solid #e2e8f0;
}

.actions-primary {
  display: flex;
  justify-content: center;
}

.actions-secondary {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-secondary {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: #374151;
  border-color: #cbd5e1;
}

.btn-outline {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
}

/* New Page Animations */
@keyframes fadeInUpNew {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.appointment-new-page {
  animation: fadeInUpNew 0.6s ease-out;
}

.form-section {
  animation: slideInNew 0.4s ease-out;
}

@keyframes slideInNew {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* New Page Responsive Design */
@media (max-width: 1200px) {
  .appointment-content {
    grid-template-columns: 1fr;
  }
  
  .appointment-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .appointment-new-page {
    padding: 0.75rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .header-text {
    flex-direction: column;
    text-align: center;
  }
  
  .header-text h1 {
    font-size: 1.375rem;
  }
  
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .step-indicator {
    display: none;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .form-section {
    padding: 1rem;
  }
  
  .actions-secondary {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-text h1 {
    font-size: 1.25rem;
  }
  
  .header-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .form-section {
    padding: 0.875rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 1rem;
  }
}

/* Focus States for New Page */
button:focus,
.btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* =========================================== */
/* COMPACT LAYOUT - VERSÃO SIMPLIFICADA       */
/* =========================================== */

.appointment-content-compact {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

.appointment-card-main {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.card-header-simple {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.card-header-simple h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.card-body-compact {
  padding: 1.25rem;
}

/* Sidebar Compacta */
.appointment-sidebar-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-card-compact,
.quick-actions-compact {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 1rem;
}

.summary-header-compact,
.quick-actions-header-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.summary-header-compact svg,
.quick-actions-header-compact svg {
  color: #3b82f6;
  flex-shrink: 0;
}

.summary-content-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.625rem;
  background: #f9fafb;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
}

.summary-label-compact {
  font-weight: 500;
  color: #6b7280;
}

.summary-value-compact {
  font-weight: 600;
  color: #1e293b;
  text-align: right;
  font-size: 0.75rem;
}

.quick-actions-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.quick-action-btn-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.quick-action-btn-compact:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1e293b;
}

.quick-action-btn-compact svg {
  color: #6b7280;
  flex-shrink: 0;
}

/* Form Compact Styles */
.appointment-form-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-alert-compact {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  padding: 0.875rem;
  color: #dc2626;
  font-size: 0.875rem;
}

.form-alert-compact ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.form-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label-compact {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-input-compact,
.form-textarea-compact {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: white;
}

.form-input-compact:focus,
.form-textarea-compact:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-compact:disabled,
.form-select:disabled,
select.form-input-compact:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-textarea-compact {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-actions-compact {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.btn-submit-compact {
  flex: 1;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit-compact:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-cancel-compact {
  padding: 0.75rem 1.5rem;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel-compact:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Responsive Compact */
@media (max-width: 1024px) {
  .appointment-content-compact {
    grid-template-columns: 1fr;
  }
  
  .appointment-sidebar-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .form-grid-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .appointment-sidebar-compact {
    grid-template-columns: 1fr;
  }
  
  .card-header-simple h1 {
    font-size: 1.125rem;
  }
  
  .card-body-compact {
    padding: 1rem;
  }
  
  .form-actions-compact {
    flex-direction: column;
  }
  
  .btn-submit-compact,
  .btn-cancel-compact {
    width: 100%;
  }
}

/* Availabilities in Sidebar */
.availabilities-content-sidebar {
  max-height: 400px;
  overflow-y: auto;
}

.availabilities-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.availability-item-sidebar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-radius: 0.625rem;
  border-left: 4px solid #3b82f6;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.availability-item-sidebar:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  transform: translateX(3px);
  box-shadow: 0 3px 6px rgba(59, 130, 246, 0.25);
  border-left-color: #2563eb;
}

.availability-day-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 75px;
}

.availability-day-sidebar .day-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1;
}

.availability-day-sidebar .day-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.availability-time-sidebar {
  font-size: 0.875rem;
  color: #0f172a;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.spinner-small {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.availabilities-loading {
  text-align: center;
  padding: 1.5rem;
}

/* =========================================== */
/* APPOINTMENT SHOW PAGE STYLES                */
/* =========================================== */

/* Appointment Details Card */
.appointments-container .bg-white {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

/* Status Header */
.appointments-container .bg-gray-50 {
  background-color: #f9fafb;
}

.appointments-container .px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.appointments-container .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.appointments-container .py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.appointments-container .border-b {
  border-bottom-width: 1px;
}

.appointments-container .border-t {
  border-top-width: 1px;
}

.appointments-container .border-gray-200 {
  border-color: #e5e7eb;
}

/* Typography */
.appointments-container .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.appointments-container .text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.appointments-container .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.appointments-container .text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.appointments-container .font-semibold {
  font-weight: 600;
}

.appointments-container .font-medium {
  font-weight: 500;
}

.appointments-container .text-gray-900 {
  color: #111827;
}

.appointments-container .text-gray-600 {
  color: #4b5563;
}

.appointments-container .text-gray-500 {
  color: #6b7280;
}

/* Flexbox Utilities */
.appointments-container .flex {
  display: flex;
}

.appointments-container .items-center {
  align-items: center;
}

.appointments-container .justify-between {
  justify-content: space-between;
}

.appointments-container .gap-1 {
  gap: 0.25rem;
}

.appointments-container .gap-2 {
  gap: 0.5rem;
}

.appointments-container .gap-3 {
  gap: 0.75rem;
}

.appointments-container .gap-6 {
  gap: 1.5rem;
}

.appointments-container .mb-1 {
  margin-bottom: 0.25rem;
}

.appointments-container .mb-2 {
  margin-bottom: 0.5rem;
}

.appointments-container .mb-3 {
  margin-bottom: 0.75rem;
}

.appointments-container .mt-1 {
  margin-top: 0.25rem;
}

.appointments-container .mt-6 {
  margin-top: 1.5rem;
}

.appointments-container .ml-2 {
  margin-left: 0.5rem;
}

.appointments-container .pt-6 {
  padding-top: 1.5rem;
}

/* Grid */
.appointments-container .grid {
  display: grid;
}

.appointments-container .grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.appointments-container .space-y-3 > * + * {
  margin-top: 0.75rem;
}

.appointments-container .space-y-4 > * + * {
  margin-top: 1rem;
}

/* Background Colors */
.appointments-container .bg-gray-50 {
  background-color: #f9fafb;
}

.appointments-container .rounded-lg {
  border-radius: 0.5rem;
}

.appointments-container .p-4 {
  padding: 1rem;
}

/* Links */
.appointments-container a.text-green-600 {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.appointments-container a.text-green-600:hover {
  color: #15803d;
}

.appointments-container a.text-blue-600 {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}

.appointments-container a.text-blue-600:hover {
  color: #1d4ed8;
}

.appointments-container a.text-gray-500 {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.appointments-container a.text-gray-500:hover {
  color: #374151;
}

.appointments-container a.text-gray-600 {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.appointments-container a.text-gray-600:hover {
  color: #111827;
}

.appointments-container .inline-flex {
  display: inline-flex;
}

/* SVG Icons */
.appointments-container svg.w-4 {
  width: 1rem;
  height: 1rem;
}

.appointments-container svg.w-5 {
  width: 1.25rem;
  height: 1.25rem;
}

.appointments-container svg.w-6 {
  width: 1.5rem;
  height: 1.5rem;
}

.appointments-container svg.inline {
  display: inline;
}

/* Whitespace */
.appointments-container .whitespace-pre-wrap {
  white-space: pre-wrap;
}

/* Responsive Design for Show Page */
@media (min-width: 768px) {
  .appointments-container .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .appointments-container .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Button Styles for Show Page */
.appointments-container .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.appointments-container .btn-success {
  background-color: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.appointments-container .btn-success:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.appointments-container .btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.appointments-container .btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

/* Section Headers */
.appointments-container h4 {
  margin: 0;
  font-weight: 500;
  color: #6b7280;
}

.appointments-container h4 svg {
  flex-shrink: 0;
}

/* Info Boxes */
.appointments-container .bg-gray-50.rounded-lg {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.appointments-container .bg-gray-50.rounded-lg p {
  margin: 0;
}

.appointments-container .bg-gray-50.rounded-lg > div + div {
  margin-top: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .appointments-container .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .appointments-container .py-6 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .appointments-container .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .appointments-container .grid.gap-6 {
    gap: 1rem;
  }
  
  .appointments-container .flex.items-center.gap-2 {
    flex-wrap: wrap;
  }
}

/* Edit Page Specific Styles */
.appointment-new-page .card-header-simple .flex {
  display: flex;
  align-items: center;
}

.appointment-new-page .card-header-simple .gap-3 {
  gap: 0.75rem;
}

.appointment-new-page .card-header-simple a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.appointment-new-page .card-header-simple a:hover {
  color: #374151;
}

.appointment-new-page .card-header-simple svg.w-5 {
  width: 1.25rem;
  height: 1.25rem;
}
/* Professionals Page Styles */

.professionals-page {
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.page-header-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-pro h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.page-header-pro p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0;
}

.btn-primary-pro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary-pro:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* Professionals Grid */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.professional-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.professional-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.professional-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e5e7eb;
}

.professional-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.professional-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.professional-phone {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.professional-stats {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.stat-value {
  font-size: 0.9375rem;
  color: #1e293b;
  font-weight: 600;
}

.professional-actions {
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-action-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid;
  white-space: nowrap;
}

.btn-action-pro svg {
  flex-shrink: 0;
}

.btn-action-calendar {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border-color: #93c5fd;
  font-weight: 600;
}

.btn-action-calendar:hover {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #60a5fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-action-edit {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #15803d;
  border-color: #86efac;
  font-weight: 600;
}

.btn-action-edit:hover {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #4ade80;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.btn-action-delete {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #b91c1c;
  border-color: #fca5a5;
  font-weight: 600;
}

.btn-action-delete:hover {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .professionals-grid {
    grid-template-columns: 1fr;
  }
  
  .professional-actions {
    grid-template-columns: 1fr;
  }
  
  .btn-action-pro {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .professionals-page {
    padding: 1rem;
  }
  
  .page-header-pro {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-primary-pro {
    width: 100%;
    justify-content: center;
  }
}

/* Empty State */
.empty-state-pro {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 0.75rem;
  border: 2px dashed #e5e7eb;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  color: #9ca3af;
  margin: 0 auto 1.5rem;
}

.empty-state-pro h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.empty-state-pro p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0 0 1.5rem 0;
}

/* Form Page */
.professional-form-page {
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.form-header-pro {
  margin-bottom: 2rem;
}

.form-header-pro h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.form-header-pro p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0;
}

.form-card-pro {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.professional-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.alert-error-pro {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  padding: 1rem;
  color: #dc2626;
  font-size: 0.875rem;
}

.alert-error-pro ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.form-section-pro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title-pro {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

.form-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group-pro {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-full-pro {
  grid-column: 1 / -1;
}

.form-label-pro {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-input-pro,
.form-textarea-pro {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  background: white;
}

.form-input-pro:focus,
.form-textarea-pro:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea-pro {
  resize: vertical;
  line-height: 1.5;
}

.form-checkboxes-pro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkbox-group-pro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-checkbox-pro {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.checkbox-label-pro {
  font-size: 0.9375rem;
  color: #374151;
  cursor: pointer;
  margin: 0;
}

.form-actions-pro {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.btn-submit-pro {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit-pro:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-cancel-pro {
  padding: 0.875rem 1.5rem;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel-pro:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
  .professionals-page,
  .professional-form-page {
    padding: 1rem;
  }

  .page-header-pro {
    flex-direction: column;
    align-items: stretch;
  }

  .professionals-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-pro {
    grid-template-columns: 1fr;
  }

  .form-card-pro {
    padding: 1.5rem;
  }

  .form-actions-pro {
    flex-direction: column;
  }

  .btn-submit-pro,
  .btn-cancel-pro {
    width: 100%;
  }
}
/* Auth Pages - Modern & Clean Design */

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Auth Page Container */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Auth Container */
.auth-container {
  background: white;
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  max-width: 28rem;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.5s ease-out;
  box-sizing: border-box;
  overflow-x: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-logo svg {
  width: 3rem;
  height: 3rem;
  color: #667eea;
}

.auth-logo h1 {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.auth-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.auth-header p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* Error Messages */
.error-messages {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.error-messages h2 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #991b1b;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.error-messages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-messages li {
  font-size: 0.875rem;
  color: #dc2626;
  line-height: 1.5;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.section-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* Input with Icon */
.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
}

.form-input {
  width: 100%;
  max-width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #1f2937;
  background: #f9fafb;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:hover {
  border-color: #d1d5db;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Slug Input Group */
.slug-input-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  overflow: hidden;
  box-sizing: border-box;
}

.slug-input-group:hover {
  border-color: #d1d5db;
  background: white;
}

.slug-input-group:focus-within {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.slug-prefix {
  padding: 0.875rem 0.75rem;
  font-size: 0.95rem;
  color: #6b7280;
  background: #f3f4f6;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
}

.slug-input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #1f2937;
}

.slug-input:focus {
  outline: none;
  box-shadow: none;
}

.section-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Remember Me */
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  accent-color: #667eea;
}

.remember-me label {
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* Submit Button */
.form-actions {
  margin-bottom: 1.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.4);
  letter-spacing: 0.025em;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #5568d3 0%, #6a4190 100%);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.4);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
}

.auth-footer p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.auth-link {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
  .auth-container {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
  
  .auth-logo h1 {
    font-size: 1.75rem;
  }
  
  .auth-header h2 {
    font-size: 1.5rem;
  }
  
  .auth-logo svg {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .slug-prefix {
    font-size: 0.8125rem;
    padding: 0.875rem 0.5rem;
  }
  
  .section-title {
    font-size: 1.125rem;
  }
  
  .section-description {
    font-size: 0.8125rem;
  }
}

/* Loading State */
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-submit.loading {
  position: relative;
  color: transparent;
}

.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 50%;
  left: 50%;
  margin-left: -0.625rem;
  margin-top: -0.625rem;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus Visible */
.form-input:focus-visible,
.btn-submit:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ============================================ */
/* Mobile-Style Login (matching Next.js design) */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(182, 255, 106, 0.3), 0 20px 40px -10px rgba(28, 58, 78, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(182, 255, 106, 0.5), 0 20px 40px -10px rgba(28, 58, 78, 0.4);
  }
}

.auth-page-mobile {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0f2027 0%, #1C3A4E 50%, #2c5364 100%);
  padding: 1rem 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

.auth-mobile-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
  padding: 0 1.25rem;
  box-sizing: border-box;
  animation: fadeInUp 0.6s ease-out;
}

/* Header com Logo */
.auth-mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  padding-bottom: 1.25rem;
}

.auth-mobile-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1C3A4E 0%, #0f2027 100%);
  margin-bottom: 0.75rem;
  position: relative;
  animation: pulse-glow 3s ease-in-out infinite;
  border: 2px solid rgba(182, 255, 106, 0.3);
}

.auth-mobile-logo::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: linear-gradient(135deg, #B6FF6A 0%, #1C3A4E 50%, #B6FF6A 100%);
  z-index: -1;
  opacity: 0.5;
}

.auth-mobile-logo .logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: #B6FF6A;
  text-shadow: 0 0 20px rgba(182, 255, 106, 0.5);
  letter-spacing: -1px;
}

.auth-mobile-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  text-align: center;
  letter-spacing: -0.5px;
}

.auth-mobile-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-align: center;
  font-weight: 400;
}

/* Card do Form */
.auth-mobile-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1C3A4E;
  margin: 0 0 1rem 0;
  text-align: center;
}

/* Error Alert */
.error-alert {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  border: 1px solid #FCA5A5;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.error-alert::before {
  content: '⚠️';
  font-size: 1.25rem;
}

.error-alert p {
  font-size: 0.875rem;
  color: #DC2626;
  margin: 0;
  font-weight: 500;
}

/* Form Mobile */
.auth-mobile-form {
  display: flex;
  flex-direction: column;
}

.form-group-mobile {
  margin-bottom: 0.875rem;
}

.form-label-mobile {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-mobile {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 0.9375rem;
  color: #1E1E1E;
  background: #F9FAFB;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-weight: 500;
}

.form-input-mobile::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.form-input-mobile:hover {
  border-color: #D1D5DB;
  background: #ffffff;
}

.form-input-mobile:focus {
  outline: none;
  border-color: #1C3A4E;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(28, 58, 78, 0.1), 0 4px 12px rgba(28, 58, 78, 0.1);
}

.btn-submit-mobile {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #1C3A4E 0%, #0f2027 100%);
  color: white;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-submit-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(182, 255, 106, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-submit-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(28, 58, 78, 0.4), 0 0 20px rgba(182, 255, 106, 0.2);
}

.btn-submit-mobile:hover::before {
  left: 100%;
}

.btn-submit-mobile:active {
  transform: translateY(0) scale(0.98);
}

.form-hint {
  display: none;
}

/* Social Login Section */
.social-login-section {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.divider-container {
  display: flex;
  align-items: center;
  margin-bottom: 0.875rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider-text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Social Buttons */
.social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.social-btn:active {
  transform: translateY(0) scale(0.98);
}

.social-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.social-btn-google {
  background: rgba(255, 255, 255, 0.95);
  border-color: #E5E7EB;
}

.social-btn-google:hover {
  background: #ffffff;
  border-color: #D1D5DB;
}

.social-btn-google span {
  color: #374151;
}

.social-btn-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0d5bc4 100%);
  border-color: #1877F2;
}

.social-btn-facebook:hover {
  background: linear-gradient(135deg, #1a85ff 0%, #1877F2 100%);
}

.social-btn-facebook span {
  color: white;
}

.social-btn-facebook .social-icon {
  color: white;
}

.social-btn-apple {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border-color: #333333;
}

.social-btn-apple:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.social-btn-apple span {
  color: white;
}

.social-btn-apple .social-icon {
  color: white;
}

/* Signup Link */
.signup-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.signup-link span {
  color: rgba(255, 255, 255, 0.7);
}

.signup-link-btn {
  color: #B6FF6A;
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.375rem;
  transition: all 0.3s ease;
  position: relative;
}

.signup-link-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B6FF6A;
  transition: width 0.3s ease;
}

.signup-link-btn:hover {
  color: #d4ff9e;
  text-shadow: 0 0 10px rgba(182, 255, 106, 0.5);
}

.signup-link-btn:hover::after {
  width: 100%;
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .auth-mobile-container {
    max-width: 420px;
    margin: 0 auto;
  }
  
  .auth-mobile-header {
    padding-top: 5rem;
  }
}

@media (max-width: 480px) {
  .auth-mobile-header {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
  }
  
  .auth-mobile-logo {
    width: 80px;
    height: 80px;
    border-radius: 22px;
  }
  
  .auth-mobile-logo .logo-text {
    font-size: 2rem;
  }
  
  .auth-mobile-title {
    font-size: 1.625rem;
  }
  
  .auth-mobile-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .social-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .social-btn {
    padding: 0.875rem 0.5rem;
  }
  
  .social-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}
/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  max-width: 28rem;
  pointer-events: none;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

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

.alert-success {
  background-color: rgba(209, 250, 229, 0.95);
  color: #065f46;
  border: 1px solid #10b981;
}

.alert-success::before {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.alert-error,
.alert-danger {
  background-color: rgba(254, 226, 226, 0.95);
  color: #991b1b;
  border: 1px solid #ef4444;
}

.alert-error::before,
.alert-danger::before {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.alert-warning {
  background-color: rgba(254, 243, 199, 0.95);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.alert-warning::before {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.alert-info,
.alert-notice {
  background-color: rgba(219, 234, 254, 0.95);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.alert-info::before,
.alert-notice::before {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

/* Close button for alerts */
.alert-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem;
  transition: opacity 0.2s;
}

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

/* Calendar & Agenda Styles - Enhanced */

/* Main Container */
.calendar-container {
  padding: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
}

/* Header Section */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.calendar-header p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.calendar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Calendar Controls */
.calendar-controls {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
}

.calendar-controls-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .calendar-controls-inner {
    flex-direction: row;
  }
}

/* View Type Selector */
.view-toggle {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem;
  gap: 0.25rem;
}

.view-toggle button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.view-toggle button:hover {
  color: #374151;
}

.view-toggle button.active {
  background-color: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.view-toggle button:not(.active) {
  color: #6b7280;
}

.view-toggle button:not(.active):hover {
  color: #111827;
}

/* Date Navigation */
.date-navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-button:hover {
  background-color: #f9fafb;
  color: #6b7280;
}

.nav-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.date-display {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  min-width: 8rem;
  text-align: center;
}

.today-button {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3b82f6;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.today-button:hover {
  color: #2563eb;
  background-color: #eff6ff;
}

/* Search Box */
.calendar-search {
  position: relative;
  flex: 1;
  max-width: 16rem;
}

.calendar-search-form {
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  color: #111827;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  outline: none;
  transition: all 0.15s ease;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Date Navigation */
.date-navigation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-display {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  min-width: 120px;
  text-align: center;
}

.nav-button {
  padding: 0.5rem;
  color: #9ca3af;
  background: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-button:hover {
  color: #6b7280;
}

/* Search Input */
.search-input {
  position: relative;
  min-width: 16rem;
}

.search-input input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.search-input input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Legend */
.status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.legend-dot.confirmed { background-color: #10b981; }
.legend-dot.pending { background-color: #f59e0b; }
.legend-dot.cancelled { background-color: #ef4444; }
.legend-dot.blocked { background-color: #3b82f6; }

/* Calendar Grid */
.calendar-grid {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #ffffff;
}

.time-slot {
  display: flex;
  align-items: center;
  min-height: 4rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.time-slot:hover {
  background-color: #f9fafb;
}

.time-slot:last-child {
  border-bottom: none;
}

.time-label {
  width: 5rem;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  border-right: 1px solid #e5e7eb;
  text-align: center;
}

.appointment-content {
  flex: 1;
  padding: 1rem;
}

.appointment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.appointment-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.appointment-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.appointment-status {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.appointment-details h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.appointment-details p {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.25rem 0 0 0;
}

.appointment-phone {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.25rem 0 0 0;
}

.appointment-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-button {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.action-button.confirm {
  color: #065f46;
  background-color: #d1fae5;
}

.action-button.confirm:hover {
  background-color: #a7f3d0;
}

.action-button.cancel {
  color: #991b1b;
  background-color: #fee2e2;
}

.action-button.cancel:hover {
  background-color: #fecaca;
}

.action-button.reschedule {
  color: #1e40af;
  background-color: #dbeafe;
}

.action-button.reschedule:hover {
  background-color: #bfdbfe;
}

.action-button.schedule {
  color: #1e40af;
  background: none;
  padding: 0.25rem 0.5rem;
}

.action-button.schedule:hover {
  color: #1d4ed8;
  background-color: #f3f4f6;
}

/* Empty Slot */
.empty-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.summary-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.summary-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .view-toggle {
    justify-content: center;
  }
  
  .date-navigation {
    justify-content: center;
  }
  
  .search-input {
    min-width: auto;
  }
  
  .appointment-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .appointment-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .time-label {
    width: 4rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .appointment-content {
    padding: 0.75rem;
  }
}

/* Modal Styles */
.appointment-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
}

.modal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 32rem;
  width: 100%;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal-content.active {
  transform: scale(1);
}

/* Week View Styles */
.week-grid {
  overflow-x: auto;
}

.week-grid table {
  min-width: 800px;
}

.week-day-header {
  min-width: 120px;
}

/* Month View Styles */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #e5e7eb;
}

.month-day {
  background-color: #ffffff;
  min-height: 120px;
  padding: 0.5rem;
}

.month-day.other-month {
  background-color: #f9fafb;
}

.month-day.today {
  border: 2px solid #3b82f6;
}

.day-number {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.day-appointments {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-appointment {
  font-size: 0.75rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-appointment:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status Colors */
.status-confirmed {
  background-color: #10b981;
}

.status-pending {
  background-color: #f59e0b;
}

.status-cancelled {
  background-color: #ef4444;
}

.status-no-show {
  background-color: #6b7280;
}

/* Button Styles */
.btn-success {
  background-color: #10b981;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

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

.btn-warning {
  background-color: #f59e0b;
  color: #ffffff;
}

.btn-warning:hover {
  background-color: #d97706;
}

/* Status Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
}

.legend-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.confirmed {
  background-color: #10b981;
}

.legend-dot.pending {
  background-color: #f59e0b;
}

.legend-dot.cancelled {
  background-color: #ef4444;
}

.legend-dot.no_show {
  background-color: #6b7280;
}

/* Calendar Grid */
.calendar-grid {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}

/* Enhanced FullCalendar Styles */
.fc {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fc-toolbar {
  margin-bottom: 1rem !important;
}

.fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

.fc-button {
  background-color: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  transition: all 0.15s ease !important;
}

.fc-button:hover {
  background-color: #f3f4f6 !important;
  border-color: #9ca3af !important;
}

.fc-button-active {
  background-color: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: white !important;
}

.fc-button-active:hover {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

.fc-daygrid-day-number {
  color: #374151 !important;
  font-weight: 500 !important;
}

.fc-day-today {
  background-color: #fafbff !important;
}

.fc-day-today .fc-daygrid-day-number {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}

.fc-event {
  border: none !important;
  border-radius: 0.25rem !important;
  padding: 0.125rem 0.25rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.fc-event:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Event Colors */
.fc-event.confirmed {
  background-color: #10b981 !important;
  color: white !important;
}

.fc-event.pending {
  background-color: #f59e0b !important;
  color: white !important;
}

.fc-event.cancelled {
  background-color: #ef4444 !important;
  color: white !important;
}

.fc-event.no_show {
  background-color: #6b7280 !important;
  color: white !important;
}

/* Time Grid Styles */
.fc-timegrid-slot {
  border-top: 1px solid #f3f4f6 !important;
}

.fc-timegrid-slot-label {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}

.fc-timegrid-now-indicator {
  border-color: #ef4444 !important;
}

.fc-timegrid-now-indicator-arrow {
  color: #ef4444 !important;
}

/* Google Calendar Inspired Day View */
.google-calendar-day {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.day-timeline {
  position: relative;
  height: 600px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Time Slots */
.time-slot {
  display: flex;
  position: relative;
  min-height: 60px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.15s ease;
}

.time-slot:hover {
  background-color: #f8f9fa;
}

.time-slot.current-hour {
  background-color: #fef7f0;
}

.time-slot.current-hour::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #ea4335;
}

/* Time Labels */
.time-label {
  width: 64px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  background-color: #fafbfc;
  border-right: 1px solid #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: sticky;
  left: 0;
  z-index: 10;
}

.time-label.current {
  color: #ea4335;
  font-weight: 600;
}

/* Time Content */
.time-content {
  flex: 1;
  padding: 4px 8px;
  position: relative;
  min-height: 60px;
}

/* Current Time Indicator */
.current-time-line {
  position: absolute;
  left: 64px;
  right: 0;
  height: 2px;
  background-color: #ea4335;
  z-index: 20;
  pointer-events: none;
}

.current-time-line::before {
  content: '';
  position: absolute;
  left: -8px;
  top: -4px;
  width: 10px;
  height: 10px;
  background-color: #ea4335;
  border-radius: 50%;
  border: 2px solid white;
}

.current-time-label {
  position: absolute;
  left: 72px;
  top: -8px;
  background-color: #ea4335;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 21;
}

/* Appointment Events */
.appointment-event {
  position: absolute;
  left: 8px;
  right: 8px;
  background: white;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 2px 0;
  border-left: 4px solid;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  overflow: hidden;
  z-index: 5;
}

.appointment-event:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
  z-index: 6;
}

.appointment-event.confirmed {
  border-left-color: #34a853;
  background-color: #f6f9f6;
}

.appointment-event.pending {
  border-left-color: #fbbc04;
  background-color: #fef8e7;
}

.appointment-event.cancelled {
  border-left-color: #ea4335;
  background-color: #fce8e6;
}

.appointment-event.no_show {
  border-left-color: #5f6368;
  background-color: #f1f3f4;
}

/* Event Content */
.event-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.event-title {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  flex: 1;
  line-height: 1.2;
}

.event-service {
  font-size: 11px;
  color: #5f6368;
  margin-bottom: 2px;
}

.event-phone {
  font-size: 10px;
  color: #80868b;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Risk Indicator */
.risk-indicator {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-indicator.low {
  background-color: #e8f5e8;
  color: #137333;
}

.risk-indicator.medium {
  background-color: #fef7e0;
  color: #b06000;
}

.risk-indicator.high {
  background-color: #fce8e6;
  color: #c5221f;
}

/* Empty State */
.empty-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  font-size: 12px;
  font-style: italic;
  opacity: 0;
  transition: all 0.15s ease;
  cursor: pointer;
  border-radius: 4px;
  margin: 4px;
}

.time-slot:hover .empty-slot {
  opacity: 1;
  background-color: rgba(26, 115, 232, 0.08);
  color: #1a73e8;
  font-weight: 500;
}

.empty-slot:hover {
  transform: scale(1.02);
}

.empty-slot::after {
  content: ' + ';
  margin-left: 4px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.time-slot:hover .empty-slot::after {
  opacity: 1;
}

/* Grid Lines */
.grid-lines {
  position: absolute;
  left: 64px;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #f1f3f4;
}

.grid-line.hour {
  background-color: #e8eaed;
}

/* Scrollbar Styling */
.day-timeline::-webkit-scrollbar {
  width: 8px;
}

.day-timeline::-webkit-scrollbar-track {
  background: #f1f3f4;
}

.day-timeline::-webkit-scrollbar-thumb {
  background: #c1c7cd;
  border-radius: 4px;
}

.day-timeline::-webkit-scrollbar-thumb:hover {
  background: #9aa0a6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .time-label {
    width: 48px;
    font-size: 10px;
    padding: 6px 4px;
  }
  
  .time-content {
    padding: 2px 4px;
  }
  
  .appointment-event {
    left: 4px;
    right: 4px;
    padding: 4px 6px;
  }
  
  .event-title {
    font-size: 12px;
  }
  
  .event-service {
    font-size: 10px;
  }
  
  .current-time-line {
    left: 48px;
  }
  
  .current-time-label {
    left: 56px;
  }
}

/* Animations */
.appointment-event {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.current-time-line {
  animation: fadeIn 0.5s ease-out;
}

/* Professional Calendar Design */

/* Calendar Page Layout */
.calendar-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  overflow: hidden;
  background: #f8fafc;
}

/* Professional Header */
.calendar-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.025em;
}

/* Enhanced Quick Stats */
.quick-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-item.confirmed .stat-value {
  color: #10b981;
}

.stat-item.pending .stat-value {
  color: #f59e0b;
}

.stat-item.risk .stat-value {
  color: #ef4444;
}

/* Professional New Appointment Button */
.btn-new-appointment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-new-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* Main Layout */
.calendar-main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 1px;
  background: #e2e8f0;
}

.calendar-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
}

/* Professional Toolbar */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.view-toggle-compact {
  display: flex;
  background: white;
  border-radius: 0.625rem;
  padding: 0.25rem;
  gap: 0.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-toggle-compact button {
  padding: 0.5rem 1rem;
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-compact button.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Enhanced Date Navigation */
.date-nav-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.05);
}

.date-text {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  min-width: 8rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.today-btn {
  padding: 0.5rem 1rem;
  font-size: 0.813rem;
  font-weight: 600;
  color: #3b82f6;
  background: white;
  border: 1px solid #bfdbfe;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

.today-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

/* Enhanced Search */
.search-compact {
  position: relative;
  flex: 1;
  max-width: 20rem;
}

.search-input-compact {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  font-size: 0.813rem;
  color: #374151;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input-compact::placeholder {
  color: #94a3b8;
}

.search-input-compact:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon-compact {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

/* Calendar Grid Container */
.calendar-grid-fullheight {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  min-height: 0;
}

/* Ensure day view has proper scroll */
.calendar-grid-fullheight .google-calendar-day {
  height: auto;
  min-height: 100%;
  overflow-y: visible;
}

.calendar-grid-fullheight .day-timeline {
  height: auto;
  min-height: 100%;
}

/* Professional Waitlist Sidebar */
.waitlist-sidebar {
  width: 350px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  border-left: 1px solid #e2e8f0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.sidebar-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.813rem;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-all-link:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

/* Enhanced Waitlist Items */
.waitlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.waitlist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.waitlist-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.item-position {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-service {
  font-size: 0.813rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.item-meta svg {
  width: 0.875rem;
  height: 0.875rem;
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notify-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

/* Professional Empty State */
.waitlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: #94a3b8;
}

.waitlist-empty svg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.waitlist-empty p {
  font-size: 0.9375rem;
  margin: 0;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1280px) {
  .waitlist-sidebar {
    width: 320px;
  }
  
  .quick-stats {
    gap: 1.5rem;
  }
  
  .header-left {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  .calendar-main-layout {
    flex-direction: column;
  }
  
  .waitlist-sidebar {
    width: 100%;
    max-height: 350px;
  }
  
  .quick-stats {
    display: none;
  }
  
  .calendar-toolbar {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .calendar-compact-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
  }
  
  .header-left {
    justify-content: space-between;
    gap: 1rem;
  }
  
  .calendar-toolbar {
    padding: 1rem 1.5rem;
  }
  
  .view-toggle-compact,
  .date-nav-compact,
  .search-compact {
    flex: 1 1 auto;
  }
  
  .search-compact {
    max-width: 100%;
  }
  
  .waitlist-sidebar {
    max-height: 300px;
  }
}

/* Enhanced Day View */
.google-calendar-day {
  height: auto;
  min-height: 100%;
  padding: 1rem;
  overflow-y: visible;
}

.day-timeline {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: auto;
  min-height: 100%;
}

.time-slot {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.time-slot:hover {
  background-color: #f8fafc;
}

.time-slot.current-hour {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.time-label {
  width: 80px;
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  border-right: 2px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-label.current {
  color: #3b82f6;
  font-weight: 700;
}

.time-content {
  flex: 1;
  padding: 0.5rem;
  position: relative;
}

.appointment-event {
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  margin-bottom: 0.25rem;
}

.appointment-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.appointment-event.confirmed {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.appointment-event.pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
}

.appointment-event.cancelled {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.appointment-event.no_show {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #d1d5db;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.risk-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.risk-indicator.low {
  background: #dcfce7;
  color: #166534;
}

.risk-indicator.medium {
  background: #fed7aa;
  color: #9a3412;
}

.risk-indicator.high {
  background: #fecaca;
  color: #991b1b;
}

.event-service {
  font-size: 0.813rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.event-phone {
  font-size: 0.75rem;
  color: #94a3b8;
}

.empty-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 2px dashed #e2e8f0;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.empty-slot:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.current-time-line {
  position: absolute;
  left: 80px;
  right: 0;
  height: 2px;
  background: #ef4444;
  z-index: 10;
  pointer-events: none;
}

.current-time-line::before {
  content: '';
  position: absolute;
  left: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
}

.current-time-label {
  position: absolute;
  left: -70px;
  top: -8px;
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Enhanced Week View */
.calendar-grid-fullheight .card {
  height: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.calendar-grid-fullheight .card-header {
  display: none;
}

.calendar-grid-fullheight .card-body {
  flex: 1;
  padding: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.calendar-grid-fullheight .card-body > * {
  flex: 1;
  overflow: visible;
  min-height: 0;
}

.calendar-grid-fullheight table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  height: auto;
}

.calendar-grid-fullheight thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.calendar-grid-fullheight thead th {
  padding: 1rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

.calendar-grid-fullheight thead th:first-child {
  width: 80px;
  text-align: left;
  padding-left: 1.5rem;
}

.calendar-grid-fullheight tbody tr {
  transition: background-color 0.15s ease;
}

.calendar-grid-fullheight tbody tr:hover {
  background-color: #f8fafc;
}

.calendar-grid-fullheight tbody td {
  padding: 0.75rem;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  min-height: 60px;
  position: relative;
}

.calendar-grid-fullheight tbody td:first-child {
  font-size: 0.813rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border-right: 2px solid #e2e8f0;
  text-align: center;
  vertical-align: middle;
  position: sticky;
  left: 0;
  z-index: 5;
}

.calendar-grid-fullheight .appointment-card {
  padding: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.calendar-grid-fullheight .appointment-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-grid-fullheight .appointment-card.bg-green-50 {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.calendar-grid-fullheight .appointment-card.bg-yellow-50 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #fbbf24;
}

.calendar-grid-fullheight .appointment-card.bg-red-50 {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.calendar-grid-fullheight .appointment-card .font-medium {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.125rem;
}

.calendar-grid-fullheight .appointment-card .text-xs {
  color: #64748b;
}

.calendar-grid-fullheight .appointment-card .flex {
  margin-top: 0.25rem;
}

.calendar-grid-fullheight .appointment-card .w-2 {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.calendar-grid-fullheight tbody td a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  color: #cbd5e1;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  text-decoration: none;
}

.calendar-grid-fullheight tbody td a:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
}

/* Enhanced Month View */
.calendar-grid-fullheight .card .grid {
  height: 100%;
  overflow: hidden;
}

.calendar-grid-fullheight .card .grid > div {
  min-height: 120px;
}

.calendar-grid-fullheight .card-body.p-0 {
  overflow: hidden;
}

.calendar-grid-fullheight .card-body > .grid {
  overflow: auto;
  height: 100%;
}

.calendar-grid-fullheight .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
}

.calendar-grid-fullheight .grid > div {
  background: white;
  padding: 0.75rem;
  min-height: 100px;
  position: relative;
}

.calendar-grid-fullheight .grid > div.bg-gray-50 {
  background: #f8fafc;
}

.calendar-grid-fullheight .grid > div.ring-2 {
  border: 2px solid #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.calendar-grid-fullheight .grid .flex {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.calendar-grid-fullheight .grid .text-sm {
  font-weight: 600;
  color: #64748b;
}

.calendar-grid-fullheight .grid .text-lg {
  font-weight: 700;
  color: #1e293b;
}

.calendar-grid-fullheight .grid .text-blue-600 {
  color: #3b82f6;
}

.calendar-grid-fullheight .grid .space-y-1 {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calendar-grid-fullheight .grid .appointment-card {
  padding: 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.688rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
}

.calendar-grid-fullheight .grid .appointment-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-grid-fullheight .grid .bg-green-100 {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.calendar-grid-fullheight .grid .bg-yellow-100 {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #9a3412;
}

.calendar-grid-fullheight .grid .bg-red-100 {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.calendar-grid-fullheight .grid .font-medium {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.calendar-grid-fullheight .grid .truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-grid-fullheight .grid .text-xs {
  color: #64748b;
}

.calendar-grid-fullheight .grid .text-center {
  text-align: center;
}

.calendar-grid-fullheight .grid .text-gray-500 {
  color: #94a3b8;
}

.calendar-grid-fullheight .grid .text-gray-400 {
  color: #cbd5e1;
}

.calendar-grid-fullheight .grid .hover\:text-blue-600:hover {
  color: #3b82f6;
}

.calendar-grid-fullheight .grid .hover\:bg-blue-50:hover {
  background: #eff6ff;
}

.calendar-grid-fullheight .grid .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.calendar-grid-fullheight .grid .w-4 {
  width: 1rem;
}

.calendar-grid-fullheight .grid .h-4 {
  height: 1rem;
}

.calendar-grid-fullheight .grid .mx-auto {
  margin-left: auto;
  margin-right: auto;
}




/* Services Page Styles */

/* Services Container */
.services-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Services Header */
.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.services-header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.services-header-content p {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

.services-header-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Service Card */
.service-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e5e7eb;
}

.service-card.inactive {
  opacity: 0.7;
  background-color: #fafafa;
}

.service-card.inactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #9ca3af;
}

/* Status Badge */
.service-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-inactive {
  background-color: #f3f4f6;
  color: #6b7280;
}

/* Service Header */
.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.service-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.service-info p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service Details */
.service-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.5rem;
  border: 1px solid #f3f4f6;
}

.service-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.service-detail-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.service-detail.duration {
  color: #6b7280;
}

.service-detail.price {
  color: #111827;
  font-weight: 600;
  font-size: 1rem;
}

.service-detail.price .service-detail-icon {
  color: #10b981;
}

/* Service Actions */
.service-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.service-actions .btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.813rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  text-decoration: none;
  border: 1px solid;
  cursor: pointer;
}

.btn-secondary {
  background-color: white;
  color: #374151;
  border-color: #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.btn-danger {
  background-color: white;
  color: #ef4444;
  border-color: #fecaca;
}

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

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.services-empty {
  background: white;
  border: 2px dashed #e5e7eb;
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.services-empty svg {
  width: 4rem;
  height: 4rem;
  color: #d1d5db;
  margin: 0 auto 1.5rem;
}

.services-empty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.services-empty p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.services-empty .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  transition: all 0.15s ease;
}

.services-empty .btn:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Loading State */
.services-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.services-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .services-container {
    padding: 1rem;
  }
  
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .services-header-content h1 {
    font-size: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .service-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .service-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .service-info h3 {
    font-size: 1rem;
  }
  
  .service-actions {
    flex-direction: column;
  }
  
  .services-empty {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .services-container {
    padding: 0.75rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-details {
    padding: 0.75rem;
  }
  
  .service-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Animations */
.service-card {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus States */
.service-actions .btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.btn-primary:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
/* Blocked Dates Page Styles */

/* Container */
.blocked-dates-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
}

/* Header */
.blocked-dates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
}

.blocked-dates-header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.blocked-dates-header-content p {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

/* Main Layout */
.blocked-dates-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Blocked Dates List */
.blocked-dates-list {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blocked-dates-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.blocked-dates-list-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blocked-dates-count {
  background-color: #f3f4f6;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* Blocked Date Item */
.blocked-dates-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blocked-date-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.blocked-date-item:hover {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blocked-date-info {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.blocked-date-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.blocked-date-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.blocked-date-details h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.blocked-date-details .date {
  font-size: 0.813rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.blocked-date-details .time-range {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.blocked-date-details .reason {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

.blocked-date-actions {
  display: flex;
  align-items: center;
}

/* Form Panel */
.blocked-date-form-panel {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 1.5rem;
}

.blocked-date-form-header {
  margin-bottom: 1.5rem;
}

.blocked-date-form-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blocked-date-form-subtitle {
  font-size: 0.813rem;
  color: #6b7280;
}

/* Form Styles */
.blocked-date-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  background-color: white;
  transition: all 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-danger {
  background-color: white;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 0.5rem;
  border-radius: 0.375rem;
}

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

.btn-danger svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.blocked-dates-empty {
  text-align: center;
  padding: 3rem 2rem;
}

.blocked-dates-empty svg {
  width: 3rem;
  height: 3rem;
  color: #d1d5db;
  margin: 0 auto 1rem;
}

.blocked-dates-empty h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.blocked-dates-empty p {
  font-size: 0.813rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* Alert Messages */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Loading State */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #f3f4f6;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .blocked-dates-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blocked-date-form-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .blocked-dates-container {
    padding: 1rem;
  }
  
  .blocked-dates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .blocked-dates-header-content h1 {
    font-size: 1.5rem;
  }
  
  .blocked-dates-layout {
    gap: 1rem;
  }
  
  .blocked-dates-list,
  .blocked-date-form-panel {
    padding: 1.25rem;
  }
  
  .blocked-date-item {
    padding: 0.875rem;
  }
  
  .blocked-date-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .blocked-date-icon svg {
    width: 1rem;
    height: 1rem;
  }
}

@media (max-width: 480px) {
  .blocked-dates-container {
    padding: 0.75rem;
  }
  
  .blocked-dates-list,
  .blocked-date-form-panel {
    padding: 1rem;
  }
  
  .blocked-date-item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .blocked-date-actions {
    align-self: flex-end;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.813rem;
  }
}

/* Animations */
.blocked-date-item {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus States */
.btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.form-input:focus {
  outline: none;
}

/* Print Styles */
@media print {
  .blocked-date-form-panel,
  .blocked-date-actions {
    display: none;
  }
  
  .blocked-dates-list {
    box-shadow: none;
    border: 1px solid #000;
  }
}
/* Availabilities Page Styles - Modern & Clean */

/* Grid Layout */
.availabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Day Cards */
.availability-day-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
}

.availability-day-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.availability-day-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.availability-day-card:hover::before {
  opacity: 1;
}

/* Day Header */
.availability-day-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #f8fafc;
}

.availability-day-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.availability-day-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.availability-day-card:hover .availability-day-badge {
  transform: scale(1.05) rotate(5deg);
}

.availability-day-details {
  flex: 1;
  min-width: 0;
}

.availability-day-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.availability-day-count {
  font-size: 0.813rem;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
}

/* Time Slots */
.availability-time-slots {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.availability-time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: slideIn 0.4s ease-out;
}

.availability-time-slot:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-color: #cbd5e1;
  transform: translateX(4px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.availability-time-slot.inactive {
  opacity: 0.6;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.availability-time-slot.inactive:hover {
  opacity: 0.8;
}

.availability-time-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.availability-time-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #93c5fd;
}

.availability-time-icon-wrapper svg {
  color: #2563eb;
}

.availability-time-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.availability-time-range {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.4;
}

.availability-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.availability-status-badge svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.availability-status-badge.active {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
}

.availability-status-badge.inactive {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #64748b;
  border: 1px solid #d1d5db;
}

/* Actions */
.availability-time-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.availability-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  border: none;
  background: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.availability-action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.625rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.availability-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.availability-action-btn.edit {
  color: #3b82f6;
}

.availability-action-btn.edit:hover {
  color: #1d4ed8;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.availability-action-btn.delete {
  color: #ef4444;
}

.availability-action-btn.delete:hover {
  color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.availability-action-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Empty State */
.availability-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  color: #94a3b8;
  gap: 1rem;
}

.availability-empty-state svg {
  color: #cbd5e1;
  opacity: 0.5;
}

.availability-empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.availability-empty-state p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  max-width: 280px;
}

/* Tips Card */
.availability-tips {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1);
}

.availability-tips-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.availability-tips-icon svg {
  color: white;
}

.availability-tips-content {
  flex: 1;
}

.availability-tips-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.5rem 0;
}

.availability-tips-content p {
  font-size: 0.95rem;
  color: #1e3a8a;
  margin: 0;
  line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .availabilities-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .availabilities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .availability-day-card {
    padding: 1.5rem;
  }

  .availability-day-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .availability-day-badge {
    width: 3rem;
    height: 3rem;
    font-size: 0.875rem;
  }

  .availability-day-name {
    font-size: 1.25rem;
  }

  .availability-time-slot {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .availability-time-info {
    width: 100%;
  }

  .availability-time-actions {
    justify-content: flex-end;
    width: 100%;
  }

  .availability-tips {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .availability-tips-icon {
    width: 2rem;
    height: 2rem;
  }

  .availability-tips-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 640px) {
  .availability-day-card {
    padding: 1.25rem;
  }

  .availability-day-name {
    font-size: 1.125rem;
  }

  .availability-time-range {
    font-size: 0.95rem;
  }

  .availability-action-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .availability-action-btn svg {
    width: 1rem;
    height: 1rem;
  }

  .availability-empty-state {
    padding: 2.5rem 1.5rem;
  }

  .availability-empty-state svg {
    width: 48px;
    height: 48px;
  }
}

/* Focus States */
.availability-action-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .availability-day-card {
    background: #1f2937;
    border-color: #374151;
  }

  .availability-time-slot {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: #4b5563;
  }

  .availability-time-range {
    color: #f9fafb;
  }

  .availability-day-name {
    color: #f9fafb;
  }

  .availability-action-btn {
    background: #374151;
  }
}
/* Waitlist Entries Page Styles - Modern & Clean */

/* Container */
.waitlist-container {
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

/* Header Section */
.waitlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.waitlist-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.1;
}

.waitlist-header p {
  color: #6b7280;
  font-size: 1rem;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Queue Counter */
.queue-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  border: 1px solid #c084fc;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.2);
}

.queue-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #9333ea;
  flex-shrink: 0;
}

.queue-count {
  font-size: 1rem;
  font-weight: 600;
  color: #6b21a8;
}

/* Waitlist Grid */
.waitlist-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Waitlist Entry Cards */
.waitlist-entry {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.waitlist-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9333ea 0%, #c084fc 100%);
}

.waitlist-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #e2e8f0;
}

/* Entry Content */
.entry-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

/* Position Badge */
.position-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.position-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.3);
  flex-shrink: 0;
}

/* Client Information */
.client-info {
  flex: 1;
}

.client-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.client-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #64748b;
}

.detail-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Metadata */
.entry-metadata {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.metadata-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metadata-icon {
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
}

/* Priority Badge */
.priority-badge {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #6b21a8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px 0 rgba(147, 51, 234, 0.1);
}

/* Actions Section */
.entry-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

/* Inline Forms */
.inline {
  display: inline;
}

.inline form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.625rem 1rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -5px rgba(147, 51, 234, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -5px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: #cbd5e1;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 0.75rem 0;
}

.empty-state p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .waitlist-container {
    padding: 1.5rem;
  }
  
  .waitlist-entry {
    padding: 1.5rem;
  }
  
  .entry-content {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .waitlist-container {
    padding: 1rem;
  }
  
  .waitlist-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .waitlist-header h2 {
    font-size: 2rem;
    text-align: center;
  }
  
  .waitlist-header p {
    text-align: center;
  }
  
  .queue-counter {
    justify-content: center;
  }
  
  .entry-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .position-badge {
    align-items: center;
    gap: 1rem;
  }
  
  .entry-actions {
    align-items: stretch;
    flex-direction: row;
    justify-content: center;
  }
  
  .entry-metadata {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .position-number {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }
  
  .client-name {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .waitlist-header h2 {
    font-size: 1.75rem;
  }
  
  .waitlist-entry {
    padding: 1.25rem;
  }
  
  .position-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }
  
  .client-name {
    font-size: 1.125rem;
  }
  
  .btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }
  
  .entry-actions {
    flex-direction: column;
  }
}

/* Animations */
.waitlist-entry {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.position-number {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Focus States */
.btn:focus {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid #9333ea;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .waitlist-entry {
    background: #1f2937;
    border-color: #374151;
  }
  
  .client-name {
    color: #f9fafb;
  }
  
  .detail-item {
    color: #d1d5db;
  }
  
  .empty-state {
    background: #1f2937;
    border-color: #374151;
  }
  
  .empty-state h3 {
    color: #f9fafb;
  }
}
/* Settings Pages - Modern & Clean */

/* Container */
.settings-container {
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

/* Header */
.settings-header {
  margin-bottom: 2.5rem;
}

.settings-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  line-height: 1.1;
}

.settings-header p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Settings Card */
.settings-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  margin-bottom: 2rem;
}

.settings-card-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.settings-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.settings-card-title svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #3b82f6;
}

.settings-card-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Form Styles */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label-required {
  color: #ef4444;
  font-size: 0.75rem;
}

.form-input,
.form-textarea,
.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  font-size: 0.95rem;
  color: #374151;
  background-color: white;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-hint {
  font-size: 0.813rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.form-hint-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #9ca3af;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-grid-full {
  grid-column: 1 / -1;
}

/* Input with Icon */
.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: #9ca3af;
  pointer-events: none;
}

.input-with-icon .form-input {
  padding-left: 2.75rem;
}

/* Error States */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ef4444;
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: 0.813rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-error-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* Success Message */
.form-success {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: 0.75rem;
  color: #166534;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(34, 197, 94, 0.1);
}

.form-success-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.625rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Info Box */
.info-box {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  border-radius: 0.75rem;
  color: #1e40af;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.info-box-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Public URL Display */
.public-url-display {
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.public-url-text {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: #3b82f6;
  word-break: break-all;
}

.copy-button {
  padding: 0.5rem 0.875rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  color: #6b7280;
  font-size: 0.813rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.copy-button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.copy-button svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Character Counter */
.character-counter {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
  margin-top: 0.25rem;
}

.character-counter.warning {
  color: #f59e0b;
}

.character-counter.error {
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-container {
    padding: 1.5rem;
  }
  
  .settings-header h1 {
    font-size: 2rem;
  }
  
  .settings-card {
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .public-url-display {
    flex-direction: column;
    align-items: stretch;
  }
  
  .copy-button {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .settings-container {
    padding: 1rem;
  }
  
  .settings-header h1 {
    font-size: 1.75rem;
  }
  
  .settings-card {
    padding: 1.25rem;
  }
  
  .settings-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  .settings-card-title {
    font-size: 1.125rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 0.875rem;
  }
}

/* Animations */
.settings-card {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus States */
.btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading State */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .settings-card {
    background: #1f2937;
    border-color: #374151;
  }
  
  .settings-header h1,
  .settings-card-title {
    color: #f9fafb;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }
  
  .form-input:disabled,
  .form-textarea:disabled,
  .form-select:disabled {
    background: #1f2937;
    color: #6b7280;
  }
  
  .public-url-display {
    background: #374151;
    border-color: #4b5563;
  }
}

/* Notifications Specific Styles */
.settings-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.75rem 0;
  line-height: 1.1;
}

.settings-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.section-icon.whatsapp {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.section-icon.messages {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.section-header p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Toggle Switch */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-input {
  display: none;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.toggle-switch {
  position: relative;
  width: 3rem;
  height: 1.75rem;
  background: #d1d5db;
  border-radius: 9999px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-label .toggle-switch {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.toggle-input:checked + .toggle-label .toggle-switch::before {
  transform: translateX(1.25rem);
}

.toggle-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

/* Template Variables */
.template-variables {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.variable-tag {
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.813rem;
  font-weight: 500;
  color: #374151;
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Info Box for Notifications */
.info-box {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.info-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0c4a6e;
  margin: 0 0 0.5rem 0;
}

.info-content p {
  font-size: 0.875rem;
  color: #075985;
  margin: 0;
  line-height: 1.6;
}

/* Hint with Icon */
.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #6b7280;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.hint-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Responsive for Notifications */
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .section-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .section-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .template-variables {
    gap: 0.375rem;
  }
  
  .variable-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }
}

/* WhatsApp Connection Card */
.whatsapp-connection-card {
  margin-top: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid;
  transition: all 0.3s ease;
}

.connection-status.connected {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #86efac;
}

.connection-status.disconnected {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #fca5a5;
}

.status-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connection-status.connected .status-icon {
  background: #22c55e;
}

.connection-status.disconnected .status-icon {
  background: #ef4444;
}

.status-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.status-content {
  flex: 1;
}

.status-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.connection-status.connected .status-content h4 {
  color: #166534;
}

.connection-status.disconnected .status-content h4 {
  color: #991b1b;
}

.status-content p {
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.connection-status.connected .status-content p {
  color: #15803d;
}

.connection-status.disconnected .status-content p {
  color: #b91c1c;
}

.status-time {
  font-size: 0.813rem !important;
  opacity: 0.8;
}

.status-actions {
  flex-shrink: 0;
}

.btn-connect,
.btn-disconnect {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-connect {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.3);
}

.btn-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -5px rgba(37, 211, 102, 0.4);
}

.btn-connect svg {
  width: 1.125rem;
  height: 1.125rem;
}

.btn-disconnect {
  background: white;
  color: #ef4444;
  border: 1px solid #fca5a5;
}

.btn-disconnect:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.btn-disconnect svg {
  width: 1rem;
  height: 1rem;
}

/* QR Code Modal */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.qr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.qr-modal-content {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.qr-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.qr-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qr-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.qr-modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qr-modal-body {
  padding: 2rem;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

/* QR Loading State */
.qr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 1.5rem;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid #f3f4f6;
  border-top-color: #25d366;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.qr-loading p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* QR Code Display */
.qr-code-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 1rem;
  border: 2px dashed #d1d5db;
}

.qr-code-wrapper img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background: white;
  padding: 1rem;
}

/* QR Instructions */
.qr-instructions {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.5rem;
}

.qr-instructions h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
}

.qr-instructions ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qr-instructions li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* QR Status */
.qr-status {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-indicator.waiting {
  background: #fef3c7;
  color: #92400e;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* QR Success State */
.qr-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1.5rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-icon svg {
  width: 2rem;
  height: 2rem;
  color: #22c55e;
}

.qr-success h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #166534;
  margin: 0;
}

.qr-success p {
  font-size: 1rem;
  color: #15803d;
  margin: 0;
  max-width: 400px;
}

/* QR Error State */
.qr-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1.5rem;
}

.error-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon svg {
  width: 2rem;
  height: 2rem;
  color: #ef4444;
}

.qr-error h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #991b1b;
  margin: 0;
}

.qr-error p {
  font-size: 1rem;
  color: #b91c1c;
  margin: 0;
  max-width: 400px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .qr-modal-content {
    max-width: 100%;
    margin: 0;
    border-radius: 1rem 1rem 0 0;
    max-height: 95vh;
  }
  
  .qr-modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .qr-modal-header h3 {
    font-size: 1.25rem;
  }
  
  .qr-modal-body {
    padding: 1.5rem;
  }
  
  .qr-code-wrapper {
    padding: 1.5rem;
  }
  
  .qr-code-wrapper img {
    max-width: 240px;
  }
  
  .qr-instructions {
    padding: 1.25rem;
  }
  
  .connection-status {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .status-actions {
    width: 100%;
  }
  
  .btn-connect,
  .btn-disconnect {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   BILLING PAGE SPECIFIC STYLES
   ============================================ */

/* Billing Content */
.billing-content {
  padding: 0;
}

/* Billing Grid */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.billing-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.billing-item-full {
  grid-column: 1 / -1;
}

.billing-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-price {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.status-active {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
}

.status-trial {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.status-pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.status-canceled {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #4b5563;
  border: 1px solid #d1d5db;
}

/* Trial Info */
.trial-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.trial-text {
  font-size: 1rem;
  color: #374151;
}

.trial-text strong {
  color: #1f2937;
  font-weight: 600;
}

.trial-days {
  font-size: 0.875rem;
  color: #3b82f6;
  font-weight: 600;
}

.trial-progress {
  margin-top: 0.5rem;
}

.trial-progress-bar {
  width: 100%;
  height: 0.75rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.trial-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 9999px;
  transition: width 0.5s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Billing Actions */
.billing-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
  margin-top: 2rem;
}

.billing-action-success {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 1px solid #86efac;
  border-radius: 0.75rem;
  color: #166534;
  font-weight: 600;
  font-size: 1rem;
}

.billing-action-success svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.billing-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  max-width: fit-content;
}

.billing-subscribe-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.billing-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 0.75rem;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 500;
}

.billing-warning svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Billing Invoices */
.billing-invoices {
  padding: 0;
}

.invoices-table-wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
}

.invoices-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.invoices-table thead {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.invoices-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #e5e7eb;
}

.invoices-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.invoices-table tbody tr:hover {
  background: #f9fafb;
}

.invoices-table tbody tr:last-child {
  border-bottom: none;
}

.invoices-table td {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #374151;
}

.invoice-amount {
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.813rem;
  font-weight: 600;
  white-space: nowrap;
}

.invoice-status svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.invoice-status-paid {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
}

/* Billing Empty State */
.billing-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1.5rem;
}

.billing-empty-state svg {
  color: #d1d5db;
  opacity: 0.5;
}

.billing-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.billing-empty-state p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
  max-width: 400px;
}

/* Billing Help Section */
.billing-help {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  margin-top: 2rem;
}

.billing-help-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.billing-help-icon svg {
  color: white;
}

.billing-help-content {
  flex: 1;
}

.billing-help-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.5rem 0;
}

.billing-help-content p {
  font-size: 0.95rem;
  color: #1e3a8a;
  margin: 0;
  line-height: 1.6;
}

.billing-help-content a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.billing-help-content a:hover {
  color: #1d4ed8;
}

/* Responsive Billing */
@media (max-width: 768px) {
  .billing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .billing-item-full {
    grid-column: 1;
  }

  .billing-actions {
    gap: 0.75rem;
  }

  .billing-subscribe-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .invoices-table-wrapper {
    border-radius: 0.5rem;
  }

  .invoices-table th,
  .invoices-table td {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .billing-help {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .billing-help-icon {
    width: 2rem;
    height: 2rem;
  }

  .billing-help-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (max-width: 640px) {
  .billing-value {
    font-size: 1rem;
  }

  .plan-name {
    font-size: 1.25rem;
  }

  .status-badge {
    font-size: 0.813rem;
    padding: 0.375rem 0.75rem;
  }

  .invoices-table {
    font-size: 0.813rem;
  }

  .invoices-table th {
    font-size: 0.688rem;
    padding: 0.75rem 0.875rem;
  }

  .invoices-table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.813rem;
  }

  .billing-empty-state {
    padding: 3rem 1.5rem;
  }

  .billing-empty-state svg {
    width: 48px;
    height: 48px;
  }
}
/* Message Templates Styles */

/* Header Section */
.templates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.templates-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Info Card */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.info-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 0.5rem 0;
}

.info-card p {
  font-size: 0.875rem;
  color: #1e3a8a;
  margin: 0;
  line-height: 1.6;
}

.info-card strong {
  background: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 600;
  color: #2563eb;
  border: 1px solid #93c5fd;
}

/* Filter Section */
.filter-section {
  margin-bottom: 2.5rem;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.filter-header h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.filter-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.75rem;
}

.filter-tab {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.filter-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.filter-tab:hover::before {
  left: 100%;
}

.filter-tab:hover {
  background: white;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.filter-tab.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #2563eb;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Trigger Section */
.trigger-section {
  margin-bottom: 3rem;
}

.trigger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.trigger-header h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trigger-header h4::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 2px;
}

.template-count {
  font-size: 0.8125rem;
  color: #475569;
  background: white;
  padding: 0.375rem 0.875rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Templates List */
.templates-list {
  display: grid;
  gap: 1.25rem;
}

.template-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card:hover::before {
  transform: scaleY(1);
}

.template-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.template-content {
  position: relative;
  z-index: 1;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.template-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 1.0625rem;
  flex: 1;
}

.default-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.template-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  position: relative;
}

.btn-sm svg {
  width: 1rem;
  height: 1rem;
}

.btn-sm:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-sm.btn-outline:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

.btn-sm.btn-danger {
  border-color: #fecaca;
  color: #dc2626;
}

.btn-sm.btn-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

/* Template Preview */
.template-preview {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  border-left: 3px solid #cbd5e1;
  position: relative;
}

.template-preview::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 2rem;
  color: #cbd5e1;
  font-family: Georgia, serif;
  line-height: 1;
}

.template-status {
  display: flex;
  justify-content: flex-end;
}

.status-indicator {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.status-indicator.active {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 1px solid #86efac;
  box-shadow: 0 1px 2px rgba(22, 101, 52, 0.1);
}

.status-indicator.inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 2px dashed #e2e8f0;
}

.empty-state svg {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: #cbd5e1;
  opacity: 0.7;
}

.empty-state p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #475569;
  font-weight: 500;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #475569;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hint-icon {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.toggle-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: #374151;
}

.toggle-switch {
  width: 2.75rem;
  height: 1.5rem;
  background: #d1d5db;
  border-radius: 9999px;
  position: relative;
  transition: background 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-input:checked + .toggle-label .toggle-switch {
  background: #3b82f6;
}

.toggle-input:checked + .toggle-label .toggle-switch::after {
  transform: translateX(1.25rem);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Responsive */
@media (max-width: 768px) {
  .templates-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .template-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .template-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-tab {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 640px) {
  .templates-header h3 {
    font-size: 1.25rem;
  }
  
  .template-card {
    padding: 1.25rem;
  }
  
  .template-preview {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }
}

/* Plans Grid for Signup */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.plan-card:hover {
  border-color: #6366f1;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.plan-card.plan-selected {
  border-color: #6366f1;
  background: linear-gradient(to bottom, #f0f9ff, #ffffff);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}

.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.price-currency {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.price-decimal {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

.price-period {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.plan-features {
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #10b981;
  flex-shrink: 0;
}

.plan-trial {
  text-align: center;
  margin-bottom: 1.5rem;
}

.trial-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(251, 191, 36, 0.3);
}

.plan-radio {
  position: relative;
}

.plan-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-radio-label {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-radio-label:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.plan-radio-input:checked + .plan-radio-label {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
  font-weight: 600;
}

.plan-card.plan-selected .plan-radio-label {
  background: #6366f1;
  border-color: #6366f1;
  color: white;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .plan-card {
    padding: 1rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .plan-name {
    font-size: 1.125rem;
  }
}

/* Selected Plan Card */
.selected-plan-card {
  background: linear-gradient(to right, #f0f9ff, #ffffff);
  border: 2px solid #6366f1;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
}

.selected-plan-card .plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.selected-plan-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.selected-plan-card .price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.selected-plan-card .trial-info {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.plan-features-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-compact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.feature-compact i {
  width: 1.25rem;
  text-align: center;
  color: #6366f1;
}

.change-plan {
  text-align: center;
  margin-top: 1rem;
}

.text-link {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Animation for plan selection */
.plan-card {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlight effect on selection */
.plan-card.plan-selected {
  animation: pulse 0.5s ease-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}
/* Animated Background Blobs */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Glow effect */
@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.8), 0 0 60px rgba(251, 191, 36, 0.4);
  }
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  }
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Pulse border */
@keyframes pulse-border {
  0% {
    border-color: rgba(251, 191, 36, 0.5);
  }
  50% {
    border-color: rgba(251, 191, 36, 1);
  }
  100% {
    border-color: rgba(251, 191, 36, 0.5);
  }
}

.animate-pulse-border {
  animation: pulse-border 1.5s ease-in-out infinite;
}
/* ==========================================================================
   PAGINATION COMPONENT - Componente de Paginação Reutilizável
   ========================================================================== */

.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pagination-info {
  font-size: 0.875rem;
  color: #6b7280;
}

.pagination-showing strong {
  color: #111827;
  font-weight: 600;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.pagination-link:hover {
  background-color: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.pagination-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Estado ativo */
.pagination-item.active .pagination-link,
.pagination-link.current {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #2563eb;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.pagination-item.active .pagination-link:hover,
.pagination-link.current:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
}

/* Estado desabilitado */
.pagination-item.disabled .pagination-link {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ellipsis */
.pagination-ellipsis .pagination-link {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 1.5rem;
  padding: 0;
}

.pagination-ellipsis .pagination-link:hover {
  background: transparent;
}

/* Botões de navegação (anterior/próximo) */
.pagination-prev,
.pagination-next {
  padding: 0 1rem;
}

.pagination-text {
  display: inline;
}

/* Botões primeira/última página */
.pagination-first,
.pagination-last {
  padding: 0 0.5rem;
  min-width: 2rem;
}

/* Responsivo */
@media (max-width: 640px) {
  .pagination-container {
    padding: 1rem;
    gap: 0.75rem;
  }

  .pagination-info {
    font-size: 0.8125rem;
    text-align: center;
  }

  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
  }

  .pagination-link {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }

  .pagination-text {
    display: none;
  }

  .pagination-prev,
  .pagination-next {
    padding: 0 0.5rem;
  }
}

/* ==========================================================================
   VARIANTES PARA DIFERENTES LAYOUTS
   ========================================================================== */

/* Variante para Admin/Backoffice */
.bo-pagination .pagination-container,
.at-pagination .pagination-container {
  background-color: var(--bo-bg, #f8fafc);
  border-top-color: var(--bo-border, #e2e8f0);
}

.bo-pagination .pagination-link,
.at-pagination .pagination-link {
  border-color: var(--bo-border, #e2e8f0);
}

.bo-pagination .pagination-item.active .pagination-link,
.at-pagination .pagination-item.active .pagination-link {
  background: var(--bo-accent, #3b82f6);
  border-color: var(--bo-accent, #3b82f6);
}

/* Variante compacta */
.pagination-compact .pagination-container {
  padding: 0.75rem 1rem;
  flex-direction: row;
  justify-content: space-between;
}

.pagination-compact .pagination-info {
  font-size: 0.8125rem;
}

.pagination-compact .pagination-link {
  min-width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8125rem;
}

/* Variante sem borda */
.pagination-borderless .pagination-container {
  background: transparent;
  border-top: none;
  padding: 1rem 0;
}

/* Variante centralizada simples */
.pagination-simple .pagination-container {
  background: transparent;
  border: none;
  padding: 1.5rem 0;
}

.pagination-simple .pagination-info {
  display: none;
}
/*
 * This is the main stylesheet for AgendAI
 * It imports all component stylesheets























 */
