/* © 2026 HumanWidget. All Rights Reserved. */

/* Global HTML & Body Resets */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif; /* Modern font */
  background-color: var(--color-background-light); /* Pastel background */
  box-sizing: border-box;
}

/* Global box-sizing for all elements */
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Color Variables for Pastel Theme */
:root {
  --color-primary: #bd7bff; /* UPDATED */
  --primary-hover: #a753fb; /* ADDED */
  --color-secondary: #c5cae9; /* Light Purple/Lavender */
  --color-accent: #a7ffeb; /* Aqua Green */
  --color-text-dark: #37474f; /* Dark Grey Blue */
  --color-text-light: #eceff1; /* Light Grey Blue */
  --color-background-light: #f4f6f9; /* Very light grey */
  --color-background-medium: #e0e4e7; /* Slightly darker grey */
  --color-background-dark: #a3a7ad; /* Medium grey for header/sidebar */
  --color-success: #81c784; /* Green */
  --color-error: #ffab91; /* Light Red */
  --color-border: #cfd8dc; /* Light border grey */

  /* Widget specific colors - consistent with original if possible */
  --widget-header-bg: #8ab4f8; /* Light Blue */
  --widget-message-customer-bg: #dce775; /* Light Green/Yellow */
  --widget-message-owner-bg: #ffffff;
  --widget-input-border: #b0bec5;

  /* New for Owner Status Dot */
  --status-online-color: #81c784; /* Green for online */
  --status-offline-color: #ffab91; /* Red for offline */

  /* Dashboard layout related variables */
  --header-height: 60px; /* Default height of header */
}

/* Primary and Secondary Buttons - Reusable across both */
.primary-btn {
  background-color: var(--color-primary);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.secondary-btn {
  background-color: var(--color-background-medium);
  color: var(--color-text-dark);
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.secondary-btn:hover {
  background-color: var(--color-border);
  transform: translateY(-1px);
}

/* Modals (Pop-ups) - Reusable across both */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content.small-modal {
  max-width: 400px;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--color-text-dark);
  font-size: 1.8em;
}

.modal-content p {
  font-size: 1em;
  color: var(--color-text-dark);
  line-height: 1.5;
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: left;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font-size: 1em;
}

.modal-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-content .close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content .close-button:hover,
.modal-content .close-button:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Animations - if used in both */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* © 2026 HumanWidget. All Rights Reserved. */
