/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', monospace;
  overflow: hidden;
  background-color: #2a3f5f;
}

#desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #2a3f5f;
  background-size: cover;
  overflow: hidden;
}

/* Taskbar Styles */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 1000;
}

.taskbar-start, .taskbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-button {
  background-color: #444;
  border: none;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
}

.app-button:hover {
  background-color: #555;
}

/* Window Styles */
.window {
  position: absolute;
  background-color: #f0f0f0;
  border: 1px solid #777;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  min-width: 300px;
  min-height: 200px;
  overflow: hidden;
}

.window-header {
  background-color: #4a5568;
  color: white;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.window-title {
  font-size: 14px;
  font-weight: bold;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.window-minimize {
  background-color: yellow;
}

.window-maximize {
  background-color: green;
}

.window-close {
  background-color: red;
}

.window-content {
  flex-grow: 1;
  padding: 10px;
  overflow: auto;
  background-color: white;
}

/* Email Window Styles */
.email-window .window-content {
  padding: 0;
  overflow: hidden;
}

.email-container {
  display: flex;
  height: 100%;
}

.email-sidebar {
  background-color: #f5f7fa;
  border-right: 1px solid #ddd;
  width: 300px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.email-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eaeef3;
}

.email-count {
  font-size: 13px;
  color: #666;
}

.email-list-container {
  overflow-y: auto;
  flex: 1;
}

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

.email-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.email-item-empty {
  padding: 15px;
  color: #888;
  text-align: center;
  font-style: italic;
}

.email-item.selected {
  background-color: #e6f7ff;
  border-left: 3px solid #1a73e8;
}

.email-item.unread {
  background-color: rgba(242, 245, 250, 0.8);
}

.email-item:hover {
  background-color: #f0f5fa;
}

.email-item-status {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background-color: #1a73e8;
  border-radius: 50%;
}

.email-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email-item-sender {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item-subject {
  font-weight: 500;
  margin-bottom: 3px;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item-preview {
  color: #777;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.email-item-time {
  font-size: 12px;
  color: #999;
  align-self: flex-start;
}

.email-content-panel {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.email-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #777;
  font-size: 16px;
  font-style: italic;
  background-color: #fafbfc;
}

.email-detail {
  padding: 20px;
  flex: 1;
}

.email-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.email-subject {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
}

.email-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.email-body-container {
  padding-bottom: 20px;
}

.email-body {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.email-attachments {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.attachment-header {
  font-weight: 600;
  margin-bottom: 10px;
  color: #444;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: all 0.15s ease;
}

.attachment i {
  margin-right: 6px;
  color: #1a73e8;
}

.attachment:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}

.email-actions {
  margin-top: 20px;
}

.refresh-btn {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.15s ease;
}

.refresh-btn:hover {
  background-color: #0d62d6;
}

.refresh-btn i {
  margin-right: 6px;
}

.booking-confirmation {
  background-color: #e6f7e6;
  border: 1px solid #c3e6c3;
  color: #2e7d32;
  padding: 12px 15px;
  margin-top: 15px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

.booking-status {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  color: #666;
  padding: 12px 15px;
  margin-top: 15px;
  border-radius: 4px;
  font-style: italic;
}

.book-carrier-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.book-carrier-btn:hover {
  background-color: #43a047;
}

.verification-panel {
  background-color: #e9f5fe;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
}

.verification-panel h3 {
  color: #3182ce;
  margin-top: 0;
  margin-bottom: 10px;
}

.verification-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Add styling for verification-complete panel */
.verification-complete {
  background-color: #f0fff4;
  border: 1px solid #c6f6d5;
}

.verification-complete h3 {
  color: #38a169;
}

.verify-carrier-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.verify-carrier-btn:hover {
  background-color: #43a047;
}

.reject-carrier-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.reject-carrier-btn:hover {
  background-color: #e53935;
}

/* Load Board Styles */
.load-board .window-content {
  padding: 0;
}

.load-controls {
  background-color: #f0f0f0;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

.load-list {
  width: 100%;
  border-collapse: collapse;
}

.load-list th, .load-list td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.load-list th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.load-list tr:hover {
  background-color: #f9f9f9;
}

.post-load-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 3px;
  cursor: pointer;
}

.post-load-btn:hover {
  background-color: #45a049;
}

.post-btn {
    padding: 5px 10px;
    background-color: #4a5568;
    color: white;
    border: none;
    cursor: pointer;
}
.view-responses-btn {
  background-color: white;
  color: #4a5568;
  padding: 5px 10px;
  border: 1px solid #4a5568;
  cursor: pointer;
}
.view-details-btn {
  background-color: white;
  color: #4a5568;
  padding: 5px 10px;
  border: 1px solid #4a5568;
  cursor: pointer;
}



/* Document Viewer Styles */
.doc-viewer .window-content {
  display: flex;
  flex-direction: column;
}

.doc-toolbar {
  background-color: #f0f0f0;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 10px;
}

.doc-display {
  flex-grow: 1;
  padding: 15px;
  overflow: auto;
  background-color: #f9f9f9;
}

.doc-image {
  max-width: 100%;
  border: 1px solid #ddd;
}
.doc-check-btn {
  background-color: yellow;
  color: black;
  border: none;
  padding: 8px 15px;
  border-radius: 3px;
}


/* Database Window Styles */
.database-window .window-content {
  display: flex;
  flex-direction: column;
}

.database-search {
  padding: 10px;
  background-color: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.search-input {
  padding: 5px 10px;
  width: 200px;
  margin-right: 10px;
}

.search-btn {
  padding: 5px 10px;
  background-color: #4a5568;
  color: white;
  border: none;
  cursor: pointer;
}

.database-results {
  padding: 15px;
  flex-grow: 1;
  overflow: auto;
}

.result-card {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  padding: 10px;
  background-color: white;
}

.result-header {
  font-weight: bold;
  margin-bottom: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.result-details {
  font-size: 14px;
}

.result-label {
  font-weight: bold;
  display: inline-block;
  width: 150px;
}

/* Decision Panel Styles */
.decision-panel {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 20px;
  z-index: 2000;
}

.approve-btn, .deny-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.approve-btn {
  background-color: #4CAF50;
  color: white;
}

.deny-btn {
  background-color: #f44336;
  color: white;
}

/* Fullscreen overlays */
.fullscreen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

.hidden {
  display: none;
}

.intro-container, .transition-container {
  background-color: #2a3f5f;
  color: #fff;
  padding: 30px;
  border-radius: 5px;
  max-width: 600px;
  text-align: center;
}

.intro-container h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ffd700;
}

.intro-container p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

#start-game, #next-day {
  background-color: #ffd700;
  color: #2a3f5f;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

#day-stats {
  margin: 20px 0;
  text-align: left;
}

/* Notifications */
#notifications {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 300px;
  z-index: 2000;
}
.game-over-container {
  background-color: white;
  border: 4px solid red;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

.notification {
  background-color: white;
  border-left: 4px solid #4CAF50;
  padding: 10px 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.5s ease-out;
}

.notification.error {
  border-left-color: #f44336;
}

.notification.success {
  border-left-color: #38a169;
}

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

/* Component-specific styles for the game */

/* Button Styles */
.button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #4a5568;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #2d3748;
}

.button:disabled {
  background-color: #cbd5e0;
  color: #718096;
  cursor: not-allowed;
}

.button.primary {
  background-color: #3182ce;
}

.button.primary:hover {
  background-color: #2c5282;
}

.button.danger {
  background-color: #e53e3e;
}

.button.danger:hover {
  background-color: #c53030;
}

.button.success {
  background-color: #38a169;
}

.button.success:hover {
  background-color: #2f855a;
}

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

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 500px;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #f7fafc;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.close-modal {
  font-size: 24px;
  font-weight: bold;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: #718096;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;
  background-color: #f7fafc;
  border-top: 1px solid #e2e8f0;
  gap: 10px;
}

.modal-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  background-color: #e2e8f0;
  color: #4a5568;
}

.modal-button:hover {
  background-color: #cbd5e0;
}

.modal-button.ok-btn {
  background-color: #3182ce;
  color: white;
}

.modal-button.ok-btn:hover {
  background-color: #2c5282;
}

.modal-button.cancel-btn {
  background-color: #e2e8f0;
  color: #4a5568;
}

.modal-button.cancel-btn:hover {
  background-color: #cbd5e0;
}

/* Document Viewer Styles */
.insurance-document, .w9-document, .authority-document {
  background-color: white;
  padding: 20px;
  border: 1px solid #e2e8f0;
  font-family: 'Times New Roman', Times, serif;
}

.doc-header {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #718096;
  padding-bottom: 15px;
}

.doc-header h2 {
  margin: 0;
  color: #2d3748;
  font-size: 24px;
}

.doc-logo {
  width: 100px;
  height: 50px;
  background-color: #e2e8f0;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #718096;
  font-size: 12px;
}

.insurance-section, .w9-section, .authority-section {
  margin-bottom: 20px;
}

.insurance-section h3, .w9-section h3, .authority-section h3 {
  color: #4a5568;
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}

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

.info-table td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.info-table .label {
  width: 30%;
  font-weight: bold;
  color: #4a5568;
}

.info-table .value {
  width: 70%;
  color: #1a202c;
}

.info-table .expired {
  color: #e53e3e;
  font-weight: bold;
}

.doc-footer {
  margin-top: 30px;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
}

.doc-signature {
  width: 200px;
  height: 40px;
  border-bottom: 1px solid #4a5568;
  font-style: italic;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #4a5568;
}

.doc-seal {
  width: 80px;
  height: 80px;
  border: 2px solid #4a5568;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: #4a5568;
  text-align: center;
}

.doc-note {
  font-size: 12px;
  color: #718096;
  margin-top: 15px;
  font-style: italic;
}

.certification-text {
  margin: 15px 0;
  font-style: italic;
  color: #4a5568;
}

.signature-section {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.signature-line, .date-line {
  display: flex;
  flex-direction: column;
}

.signature, .date {
  border-bottom: 1px solid #4a5568;
  min-width: 200px;
  padding-bottom: 5px;
  font-style: italic;
}

.signature-label, .date-label {
  font-size: 12px;
  color: #718096;
  text-align: center;
  margin-top: 5px;
}

.official-seal {
  width: 100px;
  height: 100px;
  border: 2px solid #4a5568;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
}

.official-seal::before {
  content: "OFFICIAL SEAL";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #4a5568;
  text-align: center;
  font-weight: bold;
}

.authority-intro {
  text-align: center;
  font-style: italic;
  margin: 15px 0;
  color: #4a5568;
}

/* Document Verification Styles */
.issue-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fed7d7;
  color: #c53030;
  padding: 10px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  animation: slideIn 0.3s ease-out;
}

.issue-notification.no-issues,
.issue-notification.success {
  background-color: #c6f6d5;
  color: #2f855a;
}

.issue-icon {
  font-size: 20px;
}

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

/* Loading Indicator */
.loading-indicator {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #3182ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Database Results Styles */
.result-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: white;
}

.result-header {
  background-color: #f7fafc;
  padding: 10px 15px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.result-details {
  padding: 15px;
}

.result-label {
  font-weight: 600;
  color: #4a5568;
  width: 150px;
  display: inline-block;
}

.expired-status {
  color: #e53e3e;
  font-weight: bold;
}

.active-status {
  color: #38a169;
  font-weight: bold;
}

.rating {
  color: #f6ad55;
  font-size: 16px;
}

/* Email Window Styles */
.email-placeholder {
  color: #a0aec0;
  font-style: italic;
  text-align: center;
  margin-top: 40px;
}

.booking-confirmation {
  background-color: #48bb78;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.booking-status {
  background-color: #ed8936;
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.verification-panel {
  background-color: #e9f5fe;
  border: 1px solid #bee3f8;
  border-radius: 6px;
  padding: 15px;
  margin-top: 20px;
}

.verification-panel h3 {
  color: #3182ce;
  margin-top: 0;
  margin-bottom: 10px;
}

.verification-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.view-docs-btn {
  background-color: #4a5568;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.verify-carrier-btn {
  background-color: #38a169;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.reject-carrier-btn {
  background-color: #e53e3e;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* End Day Button */
.end-day-button {
  position: fixed;
  right: 20px;
  top: 20px;
  background-color: #e53e3e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
}

.end-day-button:hover {
  background-color: #c53030;
}

/* Store Styles */
.store-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.store-container {
  display: flex;
  height: 100%;
}

.store-sidebar {
  width: 200px;
  background-color: #f0f0f0;
  border-right: 1px solid #ddd;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.store-balance {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #2d3748;
  color: white;
  border-radius: 4px;
  text-align: center;
}

.store-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-btn {
  padding: 10px;
  text-align: left;
  background-color: #e2e8f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.category-btn:hover {
  background-color: #cbd5e0;
}

.category-btn.active {
  background-color: #4a5568;
  color: white;
}

.category-btn.disabled-feature {
  background-color: #e2e2e2;
  color: #999;
  cursor: not-allowed;
  position: relative;
  border: 1px dashed #bbb;
}

.store-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.store-item {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  gap: 15px;
  background-color: white;
  transition: transform 0.2s;
  align-items: center;
}

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

.item-image {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  /*background-color: #f7fafc; */
  border-radius: 8px;
  flex-shrink: 0;
}

.item-image img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.item-details {
  flex: 1;
}

.item-details h3 {
  margin: 0 0 8px 0;
  color: #2d3748;
}

.item-details p {
  margin: 0 0 12px 0;
  color: #4a5568;
}

.item-effect {
  font-style: italic;
  color: #4299e1;
}

.purchase-btn {
  align-self: center;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
}

.purchase-btn.available {
  background-color: #38a169;
  color: white;
}

.purchase-btn.available:hover {
  background-color: #2f855a;
}

.purchase-btn.unavailable {
  background-color: #cbd5e0;
  color: #718096;
  cursor: not-allowed;
}

.purchase-btn.owned {
  background-color: #4299e1;
  color: white;
  cursor: default;
}

.purchase-confirmation {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #38a169;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  animation: fadeIn 0.3s ease-out;
  transition: opacity 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.no-items {
  text-align: center;
  padding: 40px;
  color: #718096;
  font-style: italic;
}

.doc-display .issue-notification {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

/* Email delete button styles */
.email-item-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  visibility: hidden;
}

.email-item:hover .email-item-actions {
  visibility: visible;
}

.delete-email-btn {
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.delete-email-btn:hover {
  color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
}

.delete-email-detail-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #777;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 10px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.delete-email-detail-btn:hover {
  color: #f44336;
  border-color: #f44336;
  background-color: rgba(244, 67, 54, 0.1);
}

/* Customer Window Styles */
.customer-window-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.customer-window-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.customer-list-section {
  width: 40%;
  height: 100%;
  border-right: 1px solid #444;
  display: flex;
  flex-direction: column;
}

.customer-details-section {
  width: 60%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #333;
  border-bottom: 1px solid #444;
}

.section-header h3 {
  color: #fff;
  font-size: 16px;
}

.customer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.customer-details {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.customer-list-item {
  background-color: #444;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.customer-list-item:hover {
  background-color: #555;
}

.customer-list-item.selected {
  background-color: #2a5298;
  border-left: 4px solid #4287f5;
}

.customer-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  color: #fff;
}

.customer-company {
  font-size: 14px;
  margin-bottom: 5px;
  color: #ccc;
}

.customer-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
}

.customer-status.active {
  background-color: #4caf50;
}

.customer-status.inactive {
  background-color: #ff9800;
}

.customer-status.lost {
  background-color: #f44336;
}

.no-customers-message {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.customer-info-section {
  background-color: #444;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.customer-info-section h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #fff;
}

.info-group {
  display: flex;
  margin-bottom: 12px;
}

.info-group label {
  width: 100px;
  color: #aaa;
  font-size: 14px;
}

.info-group span {
  flex: 1;
  color: #fff;
  font-size: 14px;
}

.loyalty-bar-container {
  position: relative;
  width: 80%;
  height: 20px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.loyalty-bar {
  height: 100%;
  background: linear-gradient(90deg, #4287f5, #6fa8ff);
  border-radius: 10px;
}

.loyalty-bar-container span {
  position: absolute;
  right: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.customer-actions-section {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.customer-action-btn {
  padding: 8px 16px;
  background-color: #4287f5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.customer-action-btn:hover {
  background-color: #2a5298;
}

.customer-action-btn.delete-btn {
  background-color: #f44336;
}

.customer-action-btn.delete-btn:hover {
  background-color: #d32f2f;
}

.customer-action-btn.drop-btn {
  background-color: #9C27B0;
  color: white;
}

.customer-action-btn.drop-btn:hover {
  background-color: #7B1FA2;
}

.customer-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.customer-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.customer-form h3 {
  color: #2d3748;
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #4a5568;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  border-radius: 4px;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group.half {
  flex: 1;
  margin-bottom: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.modal-instruction {
  margin-bottom: 15px;
  color: #4a5568;
  font-size: 14px;
}

#post-load-modal .modal-content {
  width: 550px;
  max-width: 90%;
  background-color: #fff;
}

#post-load-modal .modal-header {
  background-color: #4a5568;
  color: white;
  padding: 8px 10px;
  border-bottom: 1px solid #2d3748;
}

#post-load-modal .modal-header h2 {
  color: white;
  font-size: 14px;
  font-weight: bold;
}

#post-load-modal .close-modal {
  color: white;
}

#post-load-modal .close-modal:hover {
  color: #cbd5e0;
}

#post-load-modal .modal-footer {
  background-color: #f7fafc;
  border-top: 1px solid #e2e8f0;
}

/* Updated Customer Window Styles */
.customer-window {
  padding: 0;
}

.customer-item.selected {
  background-color: #2a5298;
  border-left: 4px solid #4287f5;
}

.store-item.customer-item {
  transition: all 0.2s ease;
}

.store-item.customer-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.store-item .item-image.active {
  background-color: #4caf50;
}

.store-item .item-image.inactive {
  background-color: #ff9800;
}

.store-item .item-image.lost {
  background-color: #f44336;
}

.loyalty-bar.high-loyalty {
  background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.loyalty-bar.medium-loyalty {
  background: linear-gradient(90deg, #ff9800, #ffc107);
}

.loyalty-bar.low-loyalty {
  background: linear-gradient(90deg, #f44336, #ff5722);
}

.loyalty-bar-container.large {
  height: 24px;
  margin: 15px 0;
}

.customer-details-content {
  padding: 15px 0;
}

.customer-overview {
  display: flex;
  margin-bottom: 20px;
}

.customer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  margin-right: 15px;
}

.customer-avatar.active {
  background-color: #4caf50;
}

.customer-avatar.inactive {
  background-color: #ff9800;
}

.customer-avatar.lost {
  background-color: #f44336;
}

.customer-info {
  flex: 1;
}

.customer-stats {
  background-color: #333;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.customer-stats h4 {
  margin-bottom: 10px;
  color: #fff;
}

.loyalty-message {
  margin-top: 10px;
  font-style: italic;
  color: #ccc;
}

.customer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

#post-load-modal .modal-content {
  width: 550px;
  max-width: 90%;
  background-color: #fff;
}

#post-load-modal .modal-footer {
  background-color: #f7fafc;
  border-top: 1px solid #e2e8f0;
}

#post-load-modal .form-group input,
#post-load-modal .form-group select,
#post-load-modal .form-group textarea {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  padding: 8px;
  border-radius: 4px;
}

#post-load-modal .form-group label {
  color: #4a5568;
}

#post-load-modal .modal-instruction {
  color: #4a5568;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.form-info {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
  margin: 10px 0;
  font-size: 14px;
}

.form-info p {
  margin: 5px 0;
}

.form-info span {
  font-weight: bold;
  color: #2c3e50;
}

#distance-info {
  transition: all 0.3s ease;
  border-left: 4px solid #3498db;
}

#distance-info p:first-child {
  color: #7f8c8d;
}

#distance-info p:last-child {
  color: #16a085;
}

#rate-per-mile {
  color: #e74c3c;
}

.form-actions button[type="submit"],
.form-actions button.submit-btn,
.form-actions button.save-btn,
#save-btn {
  background-color: #3182ce;
  color: white;
}

.form-actions button[type="submit"]:hover,
.form-actions button.submit-btn:hover,
.form-actions button.save-btn:hover,
#save-btn:hover {
  background-color: #2c5282;
}

.form-actions button[type="button"],
.form-actions button.cancel-btn,
#cancel-btn {
  background-color: #e2e8f0;
  color: #4a5568;
}

.form-actions button[type="button"]:hover,
.form-actions button.cancel-btn:hover,
#cancel-btn:hover {
  background-color: #cbd5e0;
}

.rate-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rate-display {
  font-family: monospace;
  font-size: 14px;
}

.edit-rate-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-size: 16px;
  color: #4a5568;
}

.edit-rate-btn:hover {
  opacity: 1;
  color: #2d3748;
}

.rate-edit-input {
  width: 100px;
  padding: 4px;
  border: 1px solid #3182ce;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
}

.rate-edit-input:focus {
  outline: none;
  border-color: #2c5282;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.cold-email-section {
  padding: 15px;
  border-bottom: 1px solid #444;
  margin-bottom: 15px;
}

.cold-email-toggle {
  width: 100%;
  padding: 10px;
  background-color: #4287f5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.cold-email-toggle:hover {
  background-color: #2a5298;
}

.cold-email-toggle.active {
  background-color: #f44336;
}

.cold-email-toggle.active:hover {
  background-color: #d32f2f;
}

.cold-email-status {
  margin-top: 8px;
  text-align: center;
  color: #aaa;
  font-size: 12px;
  font-style: italic;
}

.stats-container {
  padding: 20px;
  overflow-y: auto;
  height: 100%;
}

.stats-container h2 {
  margin: 0 0 20px 0;
  color: #333;
  text-align: center;
}

.stats-section {
  margin-bottom: 20px;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
}

.stats-section h3 {
  margin: 0 0 10px 0;
  color: #444;
  font-size: 1.1em;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ddd;
}

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

.stat-row.total {
  margin-top: 10px;
  font-weight: bold;
  border-top: 2px solid #ddd;
  padding-top: 10px;
}

.stat-label {
  color: #666;
}

.stat-value {
  font-weight: 500;
  color: #333;
}

/* Email Selection Controls */
.email-selection-controls {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  background-color: #f5f5f5;
}

.selection-buttons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.select-all-btn,
.deselect-all-btn,
.delete-selected-btn {
  font-size: 12px;
  padding: 3px 6px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.select-all-btn:hover,
.deselect-all-btn:hover {
  background-color: #e0e0e0;
}

.delete-selected-btn {
  margin-left: auto;
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

.delete-selected-btn:hover {
  background-color: #fecaca;
}

.delete-selected-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f0f0f0;
  border-color: #ccc;
  color: #999;
}

.email-item-checkbox {
  display: flex;
  align-items: center;
  padding-right: 8px;
}

.email-select-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
