@charset "utf-8";

.gf_label_form {
  margin: 30px auto;
  background: #fff;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 500px;
}

.gfolders_setting_sec table {
  margin-top: 30px;
  width: 25%;
}
.gflabels-list .wp-list-table {
  width: 100% !important;
}

.folder:hover {
  cursor: pointer;
}

/* Manage Folders - Table Row Hover */
.gflabels-list .wp-list-table tbody tr:hover {
  background-color: #f0f7ff;
}

/* Manage Folders - Folder Name in Table */
.gflabels-list .wp-list-table .folder {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Manage Folders - Row Actions */
.gflabels-list .wp-list-table .row-actions a {
  transition: color 0.2s ease;
}
.gflabels-list .wp-list-table .row-actions .delete-folder:hover {
  color: #dc3545;
}
.gflabels-list .wp-list-table .row-actions .edit-folder:hover {
  color: #2271b1;
}

/* Manage Folders - Inline Edit Input */
.glabelval {
  padding: 6px 10px;
  border: 1px solid #2271b1;
  border-radius: 3px;
  font-size: 14px;
  width: 100%;
  max-width: 300px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.glabelval:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
}

/* Manage Folders - Update Button */
.update-folder-btn {
  color: #46b450 !important;
}
.update-folder-btn:hover {
  color: #2d8a3e !important;
}

/* Manage Labels - Row Actions */
.gflabels-list .wp-list-table .row-actions .delete-label:hover {
  color: #dc3545;
}
.gflabels-list .wp-list-table .row-actions .edit-label:hover {
  color: #2271b1;
}

/* Manage Labels - Update Button */
.update-label-btn {
  color: #46b450 !important;
}
.update-label-btn:hover {
  color: #2d8a3e !important;
}

.gfolders_setting_sec table thead th {
  text-align: left;
}

.gfolders_setting_sec .woo_inst_optional ul li label strong {
  font-weight: normal;
}

.gfolders_setting_sec a.nav-tab {
  cursor: pointer;
}

.gfolders_setting_sec .hide {
  display: none;
}

.gfolders_setting_sec .woo_inst_notes,
.gf_label_text {
  padding: 10px 0 0 0;
}

.alert.alert-success {
  background: #dff0d8;
  color: #3c763d;
  padding: 15px;
  border-radius: 3px;
  font-size: 18px;
  border: 1px solid #d6e9c6;
}

.alert.alert-danger {
  background: #dc3545;
  color: #ffffff;
  padding: 15px;
  border-radius: 3px;
  font-size: 18px;
  border: 1px solid #dc3545;
}
/*Form Style*/

.form-group,
.input-group {
  margin-bottom: 1rem;
}

label {
  display: inline-block;

  margin-bottom: 0.5rem;
}

.form-control {
  display: block;

  height: calc(1.5em + 0.75rem + 2px);

  padding: 0.375rem 0.75rem;

  font-size: 1rem;

  font-weight: 400;

  line-height: 1.5;

  color: #495057;

  background-color: #fff;

  background-clip: padding-box;

  border: 1px solid #ced4da;

  border-radius: 0.25rem;

  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.gflabels {
  float: left;
}

div#special-content {
  float: left;
  width: 25%;
  margin-left: 4%;
}

div#special-content table {
  width: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  border-spacing: 0;
  table-layout: fixed;
}

.gfolders_setting_sec table th,
.gfolders_setting_sec table td {
  line-height: 1.4em;
  padding: 8px 10px;
  font-weight: 400;
  font-size: 14px;
}

div#special-content > table > tbody > tr:nth-child(odd) {
  background-color: #f9f9f9;
}
#special-content thead th {
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

@media only screen and (min-width: 320px) and (max-width: 780px) {
  div#special-content {
    width: 50%;
    margin-left: 0;
  }
  .gfolders_setting_sec table {
    width: 50%;
  }
}
.gfolders_setting_sec .wp-heading-inline {
  border-bottom: 1px solid #ccc;
  display: block !important;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.typeahead.dropdown-menu strong {
  display: inline;
}
.add-gftags {
  background: #2271b1;
  color: #fff;
  padding: 7px 10px;
  text-decoration: none;
  border-radius: 3px;
  display: inline;
  margin-left: 8px;
}
.gftag-section {
  display: block;
  margin: 10px 0;
}
.add-gftags:hover {
  text-decoration: none;
  color: #fff;
}
tbody#the-list
  td.title.column-title.has-row-actions.column-primary
  .row-actions
  span.edit {
  display: grid;
}

tbody#the-list
  td.title.column-title.has-row-actions.column-primary
  .row-actions
  span.edit
  select.folderlist,
tbody#the-list
  td.title.column-title.has-row-actions.column-primary
  .row-actions
  span.edit
  input#typehead-17 {
  min-height: 45px;
  margin-top: 10px !important;
}

tbody#the-list
  td.title.column-title.has-row-actions.column-primary
  .row-actions
  span.edit
  a.add-gftags {
  margin: 0;
  margin-top: 7px;
}
.gftag-section ul.select2-selection__rendered {
  padding: 0 !important;
  width: 100% !important;
}
.gftag-section ul.select2-selection__rendered li {
  float: none !important;
}
.gftag-section span.select2-selection {
  border: none !important;
}
.gftag-section ul.select2-selection__rendered {
  padding: 1px 10px !important;
}
.select2-selection__rendered li.select2-selection__choice {
  background: rgba(77, 132, 254, 0.1) !important;
  color: #444f5b !important;
  line-height: 17px;
  font-size: 13px !important;
  padding: 4px 8px !important;
  border-radius: 30px !important;
  border: 1px solid #8baed4 !important;
}
.gftag-section .select2-container .select2-selection__choice__remove {
  margin-left: 0.2rem;
  top: 0.105rem;
}

/* Folder Overview - Modal */
body.flgf-modal-open {
  overflow: hidden;
}
#folder-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100000;
  display: none;
}
#folder-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  text-align: center;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#folder-modal-overlay.is-visible #folder-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
#folder-modal-inner {
  display: inline-block;
  text-align: left;
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
#folder-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e5e5;
  background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
  flex-shrink: 0;
}
#folder-modal-title-wrap {
  flex: 1;
  min-width: 0;
}
#folder-modal-header h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.flgf-modal-folder-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.flgf-modal-form-count {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #2271b1;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.modal-close {
  background: none;
  border: 2px solid transparent;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.modal-close:hover {
  color: #dc3545;
  background: #fee;
  border-color: #f5c6cb;
}
#folder-modal-content {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
#folder-modal-content table {
  width: 100%;
  border-collapse: collapse;
}
#folder-modal-content table th,
#folder-modal-content table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}
#folder-modal-content table th {
  background: #f9f9f9;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.5px;
}
#folder-modal-content table tr {
  transition: background 0.15s ease;
}
#folder-modal-content table tr:hover {
  background: #f0f7ff;
}
#folder-modal-content table tr:last-child td {
  border-bottom: none;
}

/* Modal - Footer */
#folder-modal-footer {
  padding: 12px 24px;
  border-top: 1px solid #e5e5e5;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  text-align: right;
  flex-shrink: 0;
}
#folder-modal-total {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

/* Modal - Row Number Column */
.flgf-modal-col-num {
  width: 40px;
  text-align: center !important;
  color: #999;
  font-size: 12px;
  font-weight: 600;
}

/* Modal - Form Icon */
.flgf-modal-form-icon {
  margin-right: 6px;
  opacity: 0.7;
}

/* Modal - Loading Spinner */
.flgf-modal-spinner {
  text-align: center;
  padding: 40px 0;
}
.flgf-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: flgf-spin 0.8s linear infinite;
}
@keyframes flgf-spin {
  to { transform: rotate(360deg); }
}
.flgf-modal-spinner p {
  margin-top: 14px;
  color: #888;
  font-size: 14px;
}

/* Modal - Empty State */
.flgf-modal-empty {
  text-align: center;
  padding: 50px 20px;
}
.flgf-empty-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}
.flgf-modal-empty p {
  color: #555;
  margin: 6px 0;
  font-size: 15px;
}
.flgf-empty-sub {
  color: #999 !important;
  font-size: 13px !important;
}

/* Modal - Action Links */
.flgf-modal-actions {
  white-space: nowrap;
}
.flgf-action-link {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  margin: 1px 2px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.flgf-action-edit {
  background: #e7f3ff;
  color: #2271b1;
  border: 1px solid #b3d7f5;
}
.flgf-action-edit:hover {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
  box-shadow: 0 2px 6px rgba(34, 113, 177, 0.3);
}
.flgf-action-preview {
  background: #f0fff0;
  color: #46b450;
  border: 1px solid #a3d9a3;
}
.flgf-action-preview:hover {
  background: #46b450;
  color: #fff;
  border-color: #46b450;
  box-shadow: 0 2px 6px rgba(70, 180, 80, 0.3);
}
.flgf-action-entries {
  background: #fef8e7;
  color: #c77c22;
  border: 1px solid #e8d49e;
}
.flgf-action-entries:hover {
  background: #c77c22;
  color: #fff;
  border-color: #c77c22;
  box-shadow: 0 2px 6px rgba(199, 124, 34, 0.3);
}
.flgf-modal-actions-col {
  width: 220px;
}

/* Modal - Form Name */
.flgf-modal-form-name {
  font-weight: 500;
}

/* Modal - Responsive */
@media only screen and (max-width: 782px) {
  #folder-modal-inner {
    max-height: 90vh;
  }
  #folder-modal-content {
    padding: 16px;
  }
  .flgf-modal-actions-col {
    width: auto;
  }
  .flgf-action-link {
    font-size: 11px;
    padding: 3px 7px;
  }
  #folder-modal-header {
    padding: 12px 16px;
  }
  #folder-modal-footer {
    padding: 10px 16px;
  }
}

/* Folder Overview - Table Row Hover */
.gflabels-list .wp-list-table tbody tr:hover {
  background-color: #f0f7ff;
}

/* Folder Overview - Form Count Badge */
.folder-form-count {
  display: inline-block;
  background: #2271b1;
  color: #fff;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* Folder Overview - View Button */
.view-folder-btn {
  background: #2271b1;
  color: #fff;
  border: 1px solid #2271b1;
  padding: 4px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-folder-btn:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Folder Overview - Folder Name */
.folder-name-text {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flgf-folder-icon {
  font-size: 16px;
}

/* Folder Overview - Labels */
.folder-label-tag {
  display: inline-block;
  background: #f0f0f1;
  color: #1d2327;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin: 1px 2px;
  border: 1px solid #c3c4c7;
  transition: background 0.2s ease;
}
.folder-label-tag:hover {
  background: #e0e0e1;
}
.no-labels {
  color: #999;
  font-style: italic;
}

/* Folder Overview - No Items Empty State */
.flgf-no-items {
  text-align: center;
  padding: 60px 20px;
}
.flgf-no-items-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}
.flgf-no-items p {
  font-size: 16px;
  color: #333;
  margin: 6px 0;
}
.flgf-no-items-sub {
  font-size: 14px !important;
  color: #666 !important;
}
.flgf-no-items-sub a {
  color: #2271b1;
  text-decoration: none;
  font-weight: 500;
}
.flgf-no-items-sub a:hover {
  text-decoration: underline;
}

/* Folder Dropdown - Default (no folder selected) */
.folderlist {
  color: #999;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Folder Dropdown - Focus state */
.folderlist:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.3);
  border-color: #2271b1;
}

/* Folder Dropdown - Disabled placeholder */
.folderlist option:disabled {
  color: #aaa;
  font-style: italic;
}

/* Folder Dropdown - Success flash */
.folderlist.flgf-success {
  background-color: #d4edda !important;
  color: #155724 !important;
  border-color: #28a745 !important;
}

/* Folder Dropdown - Loading state */
.folderlist.flgf-loading {
  background-color: #f0f0f1 !important;
  color: #999 !important;
  border-color: #ccc !important;
  cursor: wait;
}
