* {
  font-family: Arial, sans-serif;
}
body {
  margin: 0;
  padding: 0; 
}
p{
  margin: 0;
  padding: 0;
}

.top-menu {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  z-index: 1000;
  border: 1px solid black;
  display: flex;
  justify-content: space-between; /* pushes content to edges */
  align-items: center;
}
.top-menu h2 {
  margin: 0; /* removes default top/bottom margin that can mess up centering */
  font-size: 30px;
}
.logout {
  color: white;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
}

.logout:hover {
  color: blue;
  text-decoration: none;
}


.sidebar {
  margin-top: 50px;
  width: 200px;
  background-color: #f4f4f4;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  padding-top: 0px 10px;
  border-right: 1px solid #ddd;
}

.menu-item {
  position: relative;
  padding: 10px 50px 10px 15px;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

.menu-item:hover {
  color: #1E4996;
}

.menu-item .arrow {
  position: absolute;
  right: 20px;
  top: 10px;
  transform: none;
}

.menu-item:hover {
  background-color: #ddd;
}

.submenu {
  display: none;
  padding-left: 30px;
}

.submenu.open {
  display: block !important;
}

.submenu a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #333;
}

.submenu a:hover {
  color: #1E4996;
  text-decoration: none;
}

 .nowrap-link {
    white-space: nowrap;
  }

.content {
  margin-left: 200px;
  display: flex;
  padding: 60px 20px 20px 20px;
  width: calc(100% - 200px);
  box-sizing: border-box;
  gap: 20px;
}

.left-panel {
  width: 66%;
  background-color: #f9f9f9;
  padding: 10px;
}

.right-panel {
  width: 34%;
  background-color: #eee;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.menu-item i {
  margin-right: 8px;
  color: #333;
}

.menu-item a {
  margin-right: 8px;
  color: #333;
}

.menu-item a:hover {
  text-decoration: none;
}

/* .menu-item a i {
  margin-right: 8px;
  color: #333;
} */


/* .menu-item.no-submenu:hover {
  background-color: #f0f0f0;
  text-decoration: none;
} */
.form-label{
  display: block;
  font-weight: bold;
  margin-bottom:2px;
}
.form-control-extra{
  margin-bottom: 5px;
}
.btnConfirm{
  background-color: #1E4996;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin:10px 0px;
  font-size: 20px;
  border-radius: 15px;
}
.btnConfirm:hover{
  background-color: #0647c0;
}
.mobile-mockup {
  width: 270px;
  height: 390px;
  background-color: white;
  border: 7px solid #ccc;
  border-radius: 36px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px;
  margin-top: 10px;
}

.radio-wrapper input[type="radio"] {
  margin-right: 5px;
} 
#previewImage{
  width: 100%;
  display: none;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
#previewtext{
  margin: 0;
  padding: 0;
}
#previewText p{
  margin: 0;
  padding: 0;
}
#previewFooter{
      margin: 0;
      padding: 0;
      color: gray;
      white-space: normal;
      overflow-wrap: break-word;
}
.previewButton {
  background: black;
  color: white;
  display: none;
  width: 199px;
  align-items: center;
  justify-content : center;
  padding: 5px 0px;
  border-bottom: 1px solid silver;
  width: 100%;
}
.preview_section {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  font-size: 14px;
}
#previewButtonsContainer:empty {
  display: none;
}
#previewButtonsContainer{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content : center;
  background: black;
  color: white;
}
.btn-primary-plus{
  background-color: #1E4996;
  padding: 5px 15px;
  border-radius: 5px;
  color: white;
  border: none;
  font-size: 20px;
}

.btn-primary-plus:hover{
  background-color: #0647c0;
}
#previewlink:empty {
  display: none;
}
#previewlink{
  display: block;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  box-sizing: border-box;
} 

/* Container for the image upload section */
.image-upload-wrapper {
  margin-bottom: 20px;
}

/* Style the upload input nicely */
.image-upload-box {
  position: relative;
  display: flex;
  align-items: center;
}

/* Hide the default file input (optional if you want to fully customize) */
.custom-file-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.custom-file-input:hover {
  border-color: #007bff;
}

/* Optional: Style the label that shows the selected file name */
.custom-file-label {
  font-size: 14px;
  color: #555;
}

/* Upload status text */
#uploadStatus {
  font-size: 13px;
  color: #28a745;
}

.show_template{
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
} 
.show_template img{
  padding: 0px;
}

#loadingSpinner {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* light overlay */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(0, 0, 0, 0.2);
  border-top: 6px solid #007bff; /* change color as needed */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Global form styles */
.form-container-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.extra_space_top{
  margin-top: 50px;
}

form#myForm {
    margin: 10px auto;
    padding: 5px 20px 20px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.width-70 {
  width: 70%;
}

.width-100 {
  width: 100%;
}
form#myForm h1 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
}

form#myForm label.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #646060;
}

form#myForm input[type="text"] {
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
 form#myForm select{
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    appearance: none;          
    background-color: #fff;
}


form#myForm .custom-select-wrapper {
    position: relative;
}

form#myForm .custom-select-wrapper select {
    width: 100%;
    padding: 7px 12px;
    padding-right: 40px; /* space for custom arrow */
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    height: 40px; /* fix height to help align */
    box-sizing: border-box;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
}

/* Custom arrow */
form#myForm .custom-select-wrapper::after {
    content: '';
    position: absolute;
    top: 45%;
    right: 14px;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    transform: translateY(-50%);
}

/**************************************/
.checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.checkbox-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-left input[type="checkbox"] {
  margin: 0;
}

.checkbox-left label {
  margin: 0;
  cursor: pointer;
  line-height: 1;
}

.info-icon {
  color: #007bff;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

.tooltip-right {
  flex-shrink: 0;
}

.tooltip-right {
  position: relative; /* Anchor for absolute positioning */
}
.tooltip-popup {
  position: absolute;
   top: -20px;                    /* Adjust as needed */
  right: 20px;                  /* Adjust to your layout */
  z-index: 9999; 
  display: none;
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
  padding: 5px 16px 5px 12px;
  border-radius: 4px;
  width: 400px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-size: 12px; 
}

.tooltip-close {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #666;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.tooltip-close:hover {
  color: #000;
}


.btnConfirm[disabled] {
  background-color: #ccc;
  cursor: not-allowed;
}






/***************************************/





#keywordInputs {
    display: flex;
    gap: 8px;
}

#keywordInputs input.keyword {
    flex: 1;
}

#addKeywordBtn{
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-bottom: 15px;
}
.primary-button{
    color: red;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-bottom: 15px;
}

.primary-button:hover{
   background-color: red;
   color: white;
}

#checkKeywordsBtn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-top: 10px;
}

#addKeywordBtn:hover,
#checkKeywordsBtn:hover {
    background-color: #0056b3;
}

#keywordList {
    margin: 10px 0 20px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    min-height: 40px;
    font-size: 14px;
}

#keywordList div {
    background: #dee2e6;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
    display: inline-block;
    margin-right: 8px;
}

.textSection{
  margin-top: 10px;
}

.success-message {
    margin-top: 20px;
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

   .form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
  }
   
   .form-container {
    max-width: 300px;
    padding: 5px 10px;
    background-color: rgb(50, 47, 47);
    color: white;
  }
   
  .form-container input[type=text], .form-container input[type=password], .form-container select {
    width: 100%;
    padding: 1px 10px;
    
    border: none;
    background: gray;
    color: white; 
    font-size: 16px; 
    border-radius: 5px; 
    margin-bottom: 5px;
}

.form-container select {
    appearance: none;
    background-color: gray; 
    color: white; 
    padding: 1px 10px; 
    border-radius: 5px; 
    border: none; 
    cursor: pointer; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><polygon points="0,0 5,5 10,0" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center; 
    background-size: 5px; 
}
  
  .form-container input[type=text]:focus, .form-container input[type=password]:focus {
    background-color: #534f4f;
    outline: none;
  }
  
  .form-container .btn {
    background-color: #04AA6D;
    color: white;
    padding: 5px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:5px;
    opacity: 0.8;
  }
  
  .form-container .cancel {
    background-color: red;
  }
  
  .form-container .btn:hover, .open-button:hover {
    opacity: 1;
  }

  .form-popup_new {
    display: none;
    position: fixed;
    bottom: 0;
    right: 15px;
    border: 3px solid #f1f1f1;
    z-index: 9;
  }
  
  
  .form-container_new {
    max-width: 300px;
    padding: 10px;
    background-color: white;
  }

  #editor, #previewText {
  font-family: 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji', sans-serif;
}
.pagination-wrapper {
  padding-top: 15px;
  padding-bottom: 15px;
  border: 1px solid red;
}
.custom-pagination {
    text-align: center;
    margin-top: 20px;
}

.custom-pagination a {
    display: inline-block;
    margin: 0 0px;
    padding: 8px 12px;
    text-decoration: none;
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.custom-pagination a:hover {
    background-color: #007bff;
    color: white;
}

.custom-pagination strong {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 4px;
}
/* Fixed widths */
.w-id {
    width: 120px;
    word-break: break-word;
}

.w-phone {
    width: 120px;
    word-break: break-word;
}

.w-text {
    width: 250px;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-text-modify {
    width: 250px;
    word-break: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-status {
    width: 100px;
}

/* Optional: add ellipsis on overflow */
td {
    max-width: 100%;
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Important to make % widths work! */
}

.scrollable-templates {
    max-height: calc(100vh - 180px); /* Adjust as needed */
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

   .fixed-submit {
    position: fixed;
    bottom: 10px;
    right: 0px;
    transform: translateX(-50%);
    z-index: 1000;
  }

   .facebook_container{
    width: 100%;
  }
   .facebook_section{
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .facebook{
    background-color: #1877f2;
    border: 0;
    border-radius: 4px;
    color: #fff; cursor:
    pointer; font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    height: 40px;
    padding: 0 24px;
  }
