/* Private Admin Messaging minimal styles */
/*.pam-wrap .pam-card,*/
/*.pam-card {*/
/*  background:#fff;*/
/*  border:1px solid #e3e3e3;*/
/*  border-radius:10px;*/
/*  padding:16px;*/
/*  box-shadow:0 2px 6px rgba(0,0,0,0.04);*/
/*  margin-top:12px;*/
/*}*/

/*.pam-thread {*/
/*  max-height: 420px;*/
/*  overflow-y: auto;*/
/*  padding: 8px 0;*/
/*  border-top: 1px dashed #ddd;*/
/*  border-bottom: 1px dashed #ddd;*/
/*  margin: 12px 0;*/
/*}*/

/*.pam-msg {*/
/*  margin:10px 0;*/
/*  padding:10px 12px;*/
/*  border-radius:12px;*/
/*  display:block;*/
/*  max-width: 720px;*/
/*}*/

/*.pam-me {*/
/*  background:#f0f6ff;*/
/*  border:1px solid #d5e5ff;*/
/*}*/

/*.pam-them {*/
/*  background:#f7f7f7;*/
/*  border:1px solid #e9e9e9;*/
/*}*/

/*.pam-meta {*/
/*  font-size:12px;*/
/*  color:#666;*/
/*  margin-bottom:6px;*/
/*}*/

/*.pam-text p { margin: 0 0 8px; }*/

/*.pam-badge {*/
/*  background:#2271b1;*/
/*  color:#fff;*/
/*  padding:2px 8px;*/
/*  border-radius:12px;*/
/*  display:inline-block;*/
/*}*/

/*.pam-pagination {*/
/*  margin: 10px 0;*/
/*}*/
/*.pam-pagination .button,*/
/*.pam-page-link,*/
/*.pam-page-current {*/
/*  margin-right:6px;*/
/*  text-decoration:none;*/
/*}*/
/*.pam-page-current {*/
/*  font-weight: 700;*/
/*}*/


/*------------------------------------------*/


/* Chat Container */
/*.pam-card {*/
/*  max-width: 900px;*/
/*  margin: 20px auto;*/
/*  background: #fff;*/
/*  border-radius: 12px;*/
/*  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
/*  display: flex;*/
/*  flex-direction: column;*/
  /*height: 90vh;*/
/*  max-height: 800px;*/
/*}*/

/* Header */
/*.pam-card h2 {*/
/*  margin: 0;*/
/*  padding: 20px 24px;*/
/*  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*  color: white;*/
/*  border-radius: 12px 12px 0 0;*/
/*  font-size: 18px;*/
/*  font-weight: 600;*/
/*  border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
/*}*/

/* Messages Thread Container */
/*.pam-thread {*/
/*  flex: 1;*/
  
/*  padding: 24px;*/
/*  background: #f5f7fb;*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  gap: 16px;*/
/*}*/

/* Scrollbar Styling */
/*.pam-thread::-webkit-scrollbar {*/
/*  width: 8px;*/
/*}*/

/*.pam-thread::-webkit-scrollbar-track {*/
/*  background: transparent;*/
/*}*/

/*.pam-thread::-webkit-scrollbar-thumb {*/
/*  background: #cbd5e0;*/
/*  border-radius: 4px;*/
/*}*/

/*.pam-thread::-webkit-scrollbar-thumb:hover {*/
/*  background: #a0aec0;*/
/*}*/

/* Message Bubbles */
/*.pam-msg {*/
/*  display: flex;*/
/*  flex-direction: column;*/
/*  max-width: 70%;*/
/*  animation: fadeIn 0.3s ease-in;*/
/*}*/

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

/* Their Messages (Left) */
/*.pam-them {*/
/*  align-self: flex-start;*/
/*}*/

/* My Messages (Right) */
/*.pam-me {*/
/*  align-self: flex-end;*/
/*}*/

/* Message Meta */
/*.pam-meta {*/
/*  font-size: 11px;*/
/*  color: #718096;*/
/*  margin-bottom: 6px;*/
/*  padding: 0 4px;*/
/*  font-weight: 500;*/
/*}*/

/*.pam-them .pam-meta {*/
/*  text-align: left;*/
/*}*/

/*.pam-me .pam-meta {*/
/*  text-align: right;*/
/*}*/

/*.pam-meta strong {*/
/*  font-weight: 600;*/
/*  color: #4a5568;*/
/*}*/

/* Message Text Bubble */
/*.pam-text {*/
/*  padding: 12px 16px;*/
/*  border-radius: 18px;*/
/*  word-wrap: break-word;*/
/*  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);*/
/*}*/

/*.pam-them .pam-text {*/
/*  background: #ffffff;*/
/*  border: 1px solid #e2e8f0;*/
/*  border-radius: 18px 18px 18px 4px;*/
/*  color: #2d3748;*/
/*}*/

/*.pam-me .pam-text {*/
/*  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
/*  color: white;*/
/*  border-radius: 18px 18px 4px 18px;*/
/*}*/

/*.pam-text p {*/
/*  margin: 0;*/
/*  line-height: 1.5;*/
/*}*/

/* Message Input Section */
/*.pam-card h3 {*/
/*  display: none;*/
/*}*/

/*.pam-card form {*/
/*  padding: 20px 24px;*/
/*  background: #ffffff;*/
/*  border-top: 1px solid #e2e8f0;*/
/*  border-radius: 0 0 12px 12px;*/
/*  margin: 0;*/
/*}*/

/*.pam-card form input[type="hidden"] {*/
/*  display: none;*/
/*}*/

/*.pam-card form p {*/
/*  margin: 0;*/
/*}*/

/*.pam-card form p:first-of-type {*/
/*  margin-bottom: 12px;*/
/*}*/

/* Textarea Styling */
/*.large-text {*/
/*  width: 100% !important;*/
/*  padding: 12px 16px !important;*/
/*  border: 2px solid #e2e8f0 !important;*/
/*  border-radius: 12px !important;*/
/*  font-size: 14px !important;*/
/*  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;*/
/*  resize: none !important;*/
/*  transition: all 0.2s ease !important;*/
/*  box-sizing: border-box !important;*/
/*  min-height: 80px !important;*/
/*}*/

/*.large-text:focus {*/
/*  outline: none !important;*/
/*  border-color: #667eea !important;*/
/*  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;*/
/*}*/

/* Send Button */
/*.button-primary {*/
/*  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
/*  color: white !important;*/
/*  border: none !important;*/
/*  padding: 12px 32px !important;*/
/*  border-radius: 8px !important;*/
/*  font-size: 14px !important;*/
/*  font-weight: 600 !important;*/
/*  cursor: pointer !important;*/
/*  transition: all 0.2s ease !important;*/
/*  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3) !important;*/
/*}*/

/*.button-primary:hover {*/
/*  transform: translateY(-1px) !important;*/
/*  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4) !important;*/
/*}*/

/*.button-primary:active {*/
/*  transform: translateY(0) !important;*/
/*}*/

/* Responsive Design */
/*@media (max-width: 768px) {*/
/*  .pam-card {*/
    /*height: 100vh;*/
/*    max-height: 100vh;*/
/*    border-radius: 0;*/
/*  }*/

/*  .pam-card h2 {*/
/*    border-radius: 0;*/
/*  }*/

/*  .pam-msg {*/
/*    max-width: 85%;*/
/*  }*/

/*  .pam-thread {*/
/*    padding: 16px;*/
/*  }*/
/*}*/





/* Mobile View for Conversation List Table */
/*@media (max-width: 768px) {*/
  
  /* Hide table header on mobile */
/*  .wp-list-table thead {*/
/*    display: none;*/
/*  }*/
  
  /* Make table display as block */
/*  .wp-list-table.widefat {*/
/*    border: none;*/
/*    background: transparent;*/
/*  }*/
  
  /* Make tbody display as block */
/*  .wp-list-table tbody {*/
/*    display: block;*/
/*  }*/
  
  /* Convert each row into a card */
/*  .wp-list-table tbody tr {*/
/*    display: block;*/
/*    margin-bottom: 16px;*/
/*    background: #ffffff;*/
/*    border: 1px solid #e2e8f0;*/
/*    border-radius: 12px;*/
/*    padding: 16px;*/
/*    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
/*  }*/
  
  /* Remove striped background */
/*  .wp-list-table.striped tbody tr {*/
/*    background: #ffffff;*/
/*  }*/
  
  /* Make each cell display as block */
/*  .wp-list-table tbody tr td {*/
/*    display: block;*/
/*    width: 100% !important;*/
/*    border: none;*/
/*    padding: 8px 0;*/
/*    text-align: left;*/
/*  }*/
  
  /* Add labels before content using data attributes or pseudo elements */
/*  .wp-list-table tbody tr td:nth-child(1)::before {*/
/*    content: "Conversation: ";*/
/*    font-weight: 600;*/
/*    color: #4a5568;*/
/*    display: inline-block;*/
/*    margin-right: 4px;*/
/*  }*/
  
/*  .wp-list-table tbody tr td:nth-child(2)::before {*/
/*    content: "Last Message: ";*/
/*    font-weight: 600;*/
/*    color: #4a5568;*/
/*    display: inline-block;*/
/*    margin-right: 4px;*/
/*  }*/
  
/*  .wp-list-table tbody tr td:nth-child(3)::before {*/
/*    content: "Unread: ";*/
/*    font-weight: 600;*/
/*    color: #4a5568;*/
/*    display: inline-block;*/
/*    margin-right: 4px;*/
/*  }*/
  
  /* Style the conversation names */
/*  .wp-list-table tbody tr td:nth-child(1) {*/
/*    font-size: 16px;*/
/*    font-weight: 600;*/
/*    color: #2d3748;*/
/*    padding-bottom: 4px;*/
/*  }*/
  
  /* Style the timestamp */
/*  .wp-list-table tbody tr td:nth-child(2) {*/
/*    font-size: 13px;*/
/*    color: #718096;*/
/*    padding-bottom: 8px;*/
/*  }*/
  
  /* Style the unread badge */
/*  .wp-list-table tbody tr td:nth-child(3) {*/
/*    padding-bottom: 12px;*/
/*  }*/
  
/*  .pam-badge {*/
/*    display: inline-block;*/
/*    background: #667eea;*/
/*    color: white;*/
/*    padding: 4px 12px;*/
/*    border-radius: 12px;*/
/*    font-size: 12px;*/
/*    font-weight: 600;*/
/*    margin-left: 4px;*/
/*  }*/
  
  /* Hide the label for actions */
/*  .wp-list-table tbody tr td:nth-child(4)::before {*/
/*    display: none;*/
/*  }*/
  
  /* Style the action button */
/*  .wp-list-table tbody tr td:nth-child(4) {*/
/*    padding-top: 12px;*/
/*    border-top: 1px solid #e2e8f0;*/
/*  }*/
  
/*  .wp-list-table tbody tr td:nth-child(4) .button-primary {*/
/*    width: 100%;*/
/*    text-align: center;*/
/*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;*/
/*    color: white !important;*/
/*    border: none !important;*/
/*    padding: 12px 16px !important;*/
/*    border-radius: 8px !important;*/
/*    font-size: 14px !important;*/
/*    font-weight: 600 !important;*/
/*    text-decoration: none;*/
/*    display: block;*/
/*    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);*/
/*  }*/
  
/*  .wp-list-table tbody tr td:nth-child(4) .button-primary:hover {*/
/*    transform: translateY(-1px);*/
/*    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);*/
/*  }*/
/*}*/

/* Extra small mobile devices */
/*@media (max-width: 480px) {*/
/*  .wp-list-table tbody tr {*/
/*    padding: 12px;*/
/*    margin-bottom: 12px;*/
/*  }*/
  
/*  .wp-list-table tbody tr td:nth-child(1) {*/
/*    font-size: 15px;*/
/*  }*/
/*}*/


/* Facebook Messenger-style Chat CSS */

.pam-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid #c4e0fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.pam-card h2 {
     margin: 0;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #050505;
    border-bottom: 1px solid #0084ff;
    background: #dceeff;
}

.pam-card h3 {
  display: none;
}

.pam-thread {
  padding: 20px;
  background: #fff;
  max-height: 500px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pam-msg {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  animation: slideIn 0.2s ease-out;
}

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

.pam-msg.pam-me {
  align-self: flex-end;
  align-items: flex-end;
}

.pam-text {
  background: #0084ff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 18px 18px 0px 18px;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 15px;
}

.pam-msg.pam-me .pam-text {
  background: #0084ff;
  color: #fff;
}

.pam-msg:not(.pam-me) .pam-text {
  background: #e4e6eb;
  color: #050505;
}

.pam-text p {
  margin: 0;
}

.pam-meta {
      font-size: 12px;
    color: #65676b;
    margin-bottom: 4px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ebfdef;
    border-radius: 36px;
}

.pam-meta strong {
  font-weight: 500;
}

.pam-card form {
  padding: 12px 20px 20px;
  background: #dceeff;
  border-top: 1px solid #e4e6eb;
}

.pam-card form p {
  margin: 0;
}

.pam-card form textarea {
  width: 100%;
  padding: 10px 12px;
      border: 1px solid #a3bdf0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  line-height: 1.4;
}

.pam-card form textarea:focus {
  border-color: #0084ff;
}

.pam-card form .button {
  margin-top: 12px;
  background: #115b9f;
  color: #fff;
  width:100%;
     border: 4px solid #bfd7ed;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pam-card form .button:hover {
  background: #0073e6;
}

.pam-card form .button:active {
  transform: scale(0.98);
}

/* Scrollbar styling for thread */
.pam-thread::-webkit-scrollbar {
  width: 8px;
}

.pam-thread::-webkit-scrollbar-track {
  background: transparent;
}

.pam-thread::-webkit-scrollbar-thumb {
  background: #ccd0d5;
  border-radius: 4px;
}

.pam-thread::-webkit-scrollbar-thumb:hover {
  background: #b8bec4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pam-card {
    border-radius: 5px;
    box-shadow: none;
    /*height: 100vh;*/
    display: flex;
    flex-direction: column;
  }
  
  .pam-card h2 {
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .pam-thread {
    
    max-height: none;
    padding: 16px;
  }
  
  .pam-msg {
    max-width: 80%;
  }
  
  .pam-card form {
    padding: 12px 16px 16px;
  }
  
  .pam-text {
    font-size: 14px;
    padding: 7px 11px;
  }
  
  .pam-meta {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .pam-msg {
    max-width: 85%;
  }
  
  .pam-card form textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  
  .pam-card h2 {
    font-size: 15px;
  }
}

/* Hidden input fields styling */
input[type="hidden"] {
  display: none;
}

/* Ensure widefat class doesn't override our styles */
.widefat {
  max-width: 100% !important;
}