body {
  font-size: 16px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  color: black;
}
header {
  background-color: #4CAF50;
  color: white;
  padding: 10px 0;
  text-align: center;
  position: relative;
}
header h1 {
  margin-top: 0;
  font-size: 1.2rem;
}
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-icon {
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  color: white;
}
#search-bar {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background-color: white;
}
#search-bar.active {
  display: block;
  width: 200px;
  opacity: 1;
}
nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
nav ul li {
  display: inline;
}
nav ul li a {
  color: white;
  text-decoration: none;
}
main {
  padding: 20px;
}
.login-container {
  max-width: 250px;
  margin: 50px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  text-align: center;
  transform: perspective(1000px) rotateX(10deg) translateZ(20px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.login-container:hover {
  transform: perspective(1000px) rotateX(0deg) translateZ(30px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.login-container h2 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #4CAF50;
}
.login-container label {
  display: block;
  margin-bottom: 5px;
}
.login-container input {
  width: 100%;
  padding: 6px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}
.login-container button {
  font-size: 14px;
  padding: 10px;
  width: 100%;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.login-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
.error-message {
  color: red;
  font-size: 14px;
  margin-top: 10px;
}
.password-container {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 12px;
  color: #4CAF50;
}
section {
  margin-bottom: 20px;
}
h2 {
  border-bottom: none;
  padding-bottom: 5px;
}
#card-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}
.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 10px;
  padding: 15px;
  width: 220px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  background-color: #e0f7e0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card h3 {
  font-size: 18px;
  margin: 20px 0 10px 0;
  color: #000;
  text-align: center;
}
.card p {
  margin: 5px 0;
  color: #333;
}
.info-button {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 10px;
  position: absolute;
  top: 5px;
  left: 5px;
  transition: background-color 0.3s ease;
}
.info-button:hover {
  background-color: #1976D2;
}
.service-info-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  max-width: 350px;
  width: 85%;
}
.service-info-modal.show {
  display: block;
}
.service-info-modal h4 {
  margin: 0 0 8px 0;
  color: #4CAF50;
}
.service-info-modal p {
  margin: 4px 0;
  font-size: 13px;
}
.service-info-content {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  background-color: #fafafa;
}

/* Custom scrollbar for service content */
.service-info-content::-webkit-scrollbar {
  width: 8px;
}

.service-info-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.service-info-content::-webkit-scrollbar-thumb {
  background: #4CAF50;
  border-radius: 4px;
}

.service-info-content::-webkit-scrollbar-thumb:hover {
  background: #45a049;
}

/* Scroll indicators */
.service-scroll-indicator {
  text-align: center;
  color: #666;
  font-size: 12px;
  margin: 5px 0;
  padding: 5px;
  background-color: #f0f8f0;
  border-radius: 4px;
  border: 1px solid #4CAF50;
}

.service-scroll-indicator.top {
  margin-bottom: 10px;
}

.service-scroll-indicator.bottom {
  margin-top: 10px;
}
.service-info-modal .close-info {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
}
.service-info-modal .close-info:hover {
  background-color: #45a049;
}
.send-invoice-button {
  background-color: #f9a825;
  color: white;
  border: none;
  padding: 3px 6px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  position: absolute;
  top: 10px;
  right: 10px;
}
.settings-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}
.filter-button {
  background-color: #e0f7e0;
  color: black;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin: 5px;
}
#settings-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px  10px rgba(0, 0, 0, 0.1);
}
#settings-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 5px;
  background-color: #f1f1f1;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
#settings-menu button:hover {
  background-color: #ddd;
}
.refresh-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #f44336;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  display: none;
}
.notification-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  padding: 20px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 1002;
  max-width: 100%;
  overflow-y: auto;
}
.notification-modal.show {
  display: block;
}
.notification-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
}
.notification-modal-header h3 {
  margin: 0;
  color: #4CAF50;
  text-align: center;
  font-size: 24px;
  flex-grow: 1;
}
.back-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #4CAF50;
  padding: 5px;
}
.notification-list {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  margin-bottom: 15px;
  padding: 0 20px;
}
.notification-item {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  text-align: center;
  margin: 10px auto;
  border-radius: 8px;
  width: 80%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.notification-item.unread {
  background-color: #f0f0f0;
  font-weight: bold;
  border-left: 4px solid #4CAF50;
  padding: 10px;
  margin: 5px auto;
  width: 90%;
  font-size: 14px;
}
.notification-item.read {
  background-color: transparent;
  font-weight: normal;
  padding: 10px;
  margin: 5px auto;
  width: 90%;
  font-size: 14px;
}
.notification-item:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.notification-item:last-child {
  border-bottom: none;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes fastSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.refresh-button.refreshing {
  animation: spin 0.5s linear infinite;
}
.refresh-button.successful {
  animation: none;
  background-color: #4CAF50;
}
#agent-details-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
#agent-details-modal h2 {
  margin-bottom: 10px;
}
#agent-details-modal p {
  margin: 5px 0;
}
#agent-details-modal button {
  margin-top: 10px;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.blue-button {
  background: linear-gradient(145deg, #007BFF, #0056b3);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 120px;
}
.blue-button:hover {
  background: linear-gradient(145deg, #0056b3, #007BFF);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.blue-button:active {
  background: linear-gradient(145deg, #004080, #0056b3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}
.realistic-button {
  background: linear-gradient(145deg, #007BFF, #0056b3);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.realistic-button:hover {
  background: linear-gradient(145deg, #0056b3, #007BFF);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.realistic-button:active {
  background: linear-gradient(145deg, #004080, #0056b3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
} 

.button-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.support-button {
  background-color: white;
  color: #4CAF50;
  border: 1px solid #4CAF50;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-button:hover {
  background-color: #4CAF50;
  color: white;
}
#people-registration-form {
  display: none;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  position: relative;
}
#people-registration-form h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #4CAF50;
}
#people-registration-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
#people-registration-form input,
#people-registration-form select {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}
#people-registration-form button {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
#people-registration-form .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
}
#people-registration-form .close-button:hover {
  color: #333;
}
#service-fields-container h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #4CAF50;
}
.three-dots {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: 60px;
  right: 20px;
}
.dot {
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #f1f1f1;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-align: left;
  margin-bottom: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.dropdown-menu button:hover {
  background-color: #ddd;
  transform: translateX(5px);
}
.dropdown-menu button:active {
  background-color: #ccc;
}
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}
.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}
.b-logo {
  width: 120px;
  height: 120px;
  position: relative;
  margin: 0 auto 20px;
}
.b-logo.login-spin {
  animation: fastSpin 0.5s linear infinite;
}
.b-logo::before {
  content: '';
  position: absolute;
  width: 70px;
  height: 110px;
  left: 0;
  top: 5px;
  background: linear-gradient(145deg, #0078d4, #005ba1);
  border-radius: 50px 10px 10px 50px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transform: skewY(-5deg);
  z-index: 2;
}
.b-logo::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  right: 0;
  top: 25px;
  background: linear-gradient(145deg, #0078d4, #005ba1);
  border-radius: 10px 50px 50px 10px;
  box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
  transform: skewY(5deg);
  z-index: 1;
}
.b-logo span {
  position: absolute;
  width: 20px;
  height: 40px;
  background: linear-gradient(145deg, #0078d4, #005ba1);
  top: 40px;
  left: 50px;
  border-radius: 10px;
  transform: rotate(-10deg);
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 3;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes fastSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}
body.dark-mode header {
  background-color: #1e1e1e;
}
body.dark-mode .card {
  background-color: #2e7d32;
  color: #ffffff;
  border-color: #333;
}
body.dark-mode .card h3 {
  color: #ffffff;
}
body.dark-mode .card p {
  color: #cccccc;
}
body.dark-mode .info-button {
  background-color: #42A5F5;
}
body.dark-mode .info-button:hover {
  background-color: #1E88E5;
}
body.dark-mode .service-info-modal {
  background-color: #1e1e1e;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode .service-info-modal h4 {
  color: #ffffff;
}
body.dark-mode .service-info-modal p {
  color: #cccccc;
}
body.dark-mode .login-container {
  background-color: #1e1e1e;
  color: #ffffff;
  border-color: #333;
}
body.dark-mode .login-container h2 {
  color: #ffffff;
}
body.dark-mode .login-container input {
  background-color: #333;
  color: #ffffff;
  border-color: #555;
}
body.dark-mode .login-container button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .login-container a {
  color: #42A5F5;
}
body.dark-mode .dropdown-menu {
  background-color: #1e1e1e;
  border-color: #333;
}
body.dark-mode .dropdown-menu button {
  background-color: #333;
  color: #ffffff;
}
body.dark-mode .dropdown-menu button:hover {
  background-color: #555;
}
body.dark-mode .settings-button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .support-button {
  background-color: #1e1e1e;
  color: #4CAF50;
  border-color: #4CAF50;
}
body.dark-mode .support-button:hover {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .blue-button {
  background: linear-gradient(145deg, #007BFF, #0056b3);
  color: #ffffff;
}
body.dark-mode .realistic-button {
  background: linear-gradient(145deg, #007BFF, #0056b3);
  color: #ffffff;
}
body.dark-mode .refresh-button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .notification-button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .notification-modal {
  background-color: #121212;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode .notification-modal-header h3 {
  color: #ffffff;
}
body.dark-mode .back-button {
  color: #ffffff;
}
body.dark-mode .notification-item {
  border-bottom-color: #555;
}
body.dark-mode .notification-item.unread {
  background-color: #333;
  border-left: 4px solid #4CAF50;
}
body.dark-mode .notification-item.read {
  background-color: transparent;
}
body.dark-mode .notification-item:hover {
  background-color: #444;
}
body.dark-mode .send-invoice-button {
  background-color: #f9a825;
  color: #ffffff;
}
body.dark-mode .filter-button {
  background-color: #2e7d32;
  color: #ffffff;
}
body.dark-mode #people-registration-form {
  background-color: #1e1e1e;
  border-color: #333;
  color: #ffffff;
}
body.dark-mode #people-registration-form label {
  color: #ffffff;
}
body.dark-mode #people-registration-form input,
body.dark-mode #people-registration-form select {
  background-color: #333;
  color: #ffffff;
  border-color: #555;
}
body.dark-mode #people-registration-form button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode #people-registration-form .close-button {
  color: #ffffff;
}
body.dark-mode #people-registration-form .close-button:hover {
  color: #cccccc;
}
body.dark-mode .agent-button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode #agent-details-modal {
  background-color: #1e1e1e;
  color: #ffffff;
  border-color: #333;
}
body.dark-mode #agent-details-modal h2 {
  color: #ffffff;
}
body.dark-mode #agent-details-modal p {
  color: #cccccc;
}
body.dark-mode #agent-details-modal button {
  background-color: #4CAF50;
  color: #ffffff;
}
body.dark-mode .loading-screen {
  background-color: #121212;
}
body.dark-mode .b-logo::before,
body.dark-mode .b-logo::after,
body.dark-mode .b-logo span {
  background: linear-gradient(145deg, #00b7ff, #0088cc);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}
body.dark-mode .search-icon {
  color: #ffffff;
}
body.dark-mode #search-bar {
  background-color: #333;
  color: #ffffff;
  border-color: #555;
}

/* Dark mode for service scroll features */
body.dark-mode .service-info-content {
  background-color: #2a2a2a;
  border-color: #555;
}

body.dark-mode .service-info-content::-webkit-scrollbar-track {
  background: #333;
}

body.dark-mode .service-info-content::-webkit-scrollbar-thumb {
  background: #4CAF50;
}

body.dark-mode .service-scroll-indicator {
  background-color: #2a2a2a;
  border-color: #4CAF50;
  color: #ffffff;
} 
