/* Lilac Demo Control Panel - Compiled CSS */

/* CSS Variables - Medisolv theme */
:root {
  --color-primary: #0066b2;
  --color-primary-100: #e5f3ff;
  --color-primary-600: #004d8c;
  --color-primary-700: #003d6e;
  --color-primary-dark: #002a4d;
  --color-gray: #666666;
  --color-off-white: #f8f9fa;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Outfit, sans-serif;
}

body {
  background-color: var(--color-off-white);
  margin: 0;
  padding: 0;
  color: #333;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 2.5rem;
  color: #000;
  margin: 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  color: #000;
  margin: 0 0 1rem 0;
}

/* Navigation styling matching webapp */
nav {
  width: 100%;
  background-color: var(--color-primary-dark);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--color-primary-dark);
}

.nav-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  padding: 0.75rem 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  fill: white;
  width: 12rem;
  height: 2rem;
}

.medisolv-logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

/* Content container */
.content-container {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Card styling */
.bg-white {
  background-color: white;
}

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

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.p-6 {
  padding: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* Contact row styling */
.contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.contact-row input {
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  flex: 1;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.contact-row input:focus {
  outline: none;
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 1px var(--color-primary-600);
}

.contact-row .remove-row-btn {
  padding: 0.5rem;
  background-color: transparent;
  color: #dc2626;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.contact-row .remove-row-btn:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

.contact-row .remove-row-btn svg {
  width: 20px;
  height: 20px;
}

/* Button styling matching webapp */
.btn-primary {
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  background-color: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--color-primary-600);
}

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

.btn-secondary {
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  border: 1px solid var(--color-primary-600);
  background-color: white;
  color: var(--color-primary-600);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background-color: var(--color-primary-100);
}

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

.mt-4 {
  margin-top: 1rem;
}

/* Table styling matching webapp - Wider columns, better spacing */
#status-table {
  width: 100%;
  text-align: left;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  table-layout: auto;
}

#status-table thead {
  background-color: var(--color-primary-dark);
  color: white;
}

#status-table thead tr th {
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

#status-table thead tr th:first-child {
  border-top-left-radius: 0.5rem;
  padding-left: 2rem;
  min-width: 180px;
}

#status-table thead tr th:nth-child(2) {
  min-width: 140px;
}

#status-table thead tr th:nth-child(3) {
  min-width: 120px;
}

#status-table thead tr th:nth-child(4) {
  min-width: 100px;
}

#status-table thead tr th:nth-child(5) {
  min-width: 140px;
}

#status-table thead tr th:last-child {
  border-top-right-radius: 0.5rem;
  min-width: 120px;
}

#status-table tbody {
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#status-table tbody tr {
  transition: all 0.2s ease;
}

#status-table tbody tr:hover {
  transform: translateX(-2px) translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#status-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

#status-table tbody tr:nth-child(odd) {
  background-color: white;
}

#status-table tbody tr:first-child td {
  padding-top: 1.25rem;
}

#status-table tbody tr:last-child td {
  padding-bottom: 1.25rem;
}

#status-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}

#status-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}

#status-table td {
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

#status-table td:first-child {
  padding-left: 2rem;
  font-weight: 500;
}

/* Empty state */
#status-table tbody:empty::after {
  content: "No calls initiated yet";
  display: block;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-gray);
  font-weight: 600;
  font-size: 0.875rem;
}

.view-results-btn {
  padding: 0.5rem 1rem;
  background-color: var(--color-primary-100);
  color: var(--color-primary-600);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.view-results-btn:hover {
  background-color: var(--color-primary-600);
  color: white;
}

/* Admin button */
.admin-btn {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.2s;
}

.admin-btn svg {
  width: 20px;
  height: 20px;
}

.admin-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.admin-btn.admin-unlocked {
  background-color: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
}

.admin-btn.admin-unlocked:hover {
  background-color: rgba(76, 175, 80, 0.4);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}

.modal-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
}

.modal-content p {
  margin: 0 0 1rem 0;
  color: var(--color-gray);
}

.modal-content input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 178, 0.1);
}

.modal-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* Disabled button state */
button.disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.disabled:hover,
button:disabled:hover {
  background-color: var(--color-primary);
  transform: none;
}

