/**
 * QuickLinks Manager - Modern Admin Styles
 * Version: 2.1.1
 */
/* ===== CSS Variables ===== */
:root {
  --qlm-primary: #2271b1;
  --qlm-primary-hover: #135e96;
  --qlm-success: #00a32a;
  --qlm-success-hover: #008a20;
  --qlm-danger: #d63638;
  --qlm-danger-hover: #b32d2e;
  --qlm-gray-50: #f9fafb;
  --qlm-gray-100: #f3f4f6;
  --qlm-gray-200: #e5e7eb;
  --qlm-gray-300: #d1d5db;
  --qlm-gray-400: #9ca3af;
  --qlm-gray-500: #6b7280;
  --qlm-gray-600: #4b5563;
  --qlm-gray-700: #374151;
  --qlm-gray-800: #1f2937;
  --qlm-white: #ffffff;
  --qlm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --qlm-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --qlm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --qlm-radius: 8px;
  --qlm-radius-lg: 12px;
  --qlm-transition: 0.2s ease;
}

/* ===== Tabs Styling ===== */
#rs-pz-tabs ul {
  padding-top: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--qlm-gray-200);
}
#rs-pz-tabs ul li {
  margin-bottom: -1px;
}
#rs-pz-tabs ul .ui-tabs-active a {
  background: var(--qlm-white);
  border-bottom-color: var(--qlm-white);
}
#rs-pz-tabs .tabs-content {
  padding: 0;
}

/* ===== Description ===== */
.qlm-description {
  color: var(--qlm-gray-600);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== Add New Link Card ===== */
.qlm-add-card {
  background: linear-gradient(135deg, var(--qlm-gray-50) 0%, var(--qlm-white) 100%);
  border: 1px solid var(--qlm-gray-200);
  border-radius: var(--qlm-radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--qlm-shadow-sm);
}
.qlm-add-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--qlm-gray-800);
  margin: 0 0 16px 0;
  padding: 0;
}
.qlm-add-card__title svg {
  color: var(--qlm-primary);
}
.qlm-add-card__form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}
.qlm-add-card__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.qlm-add-card__field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--qlm-gray-700);
}
.qlm-add-card__field input[type=text] {
  padding: 10px 14px;
  border: 1px solid var(--qlm-gray-300);
  border-radius: var(--qlm-radius);
  font-size: 14px;
  transition: all var(--qlm-transition);
  background: var(--qlm-white);
  min-width: 200px;
}
.qlm-add-card__field input[type=text]:focus {
  outline: none;
  border-color: var(--qlm-primary);
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}
.qlm-add-card__field--url {
  flex: 1;
  min-width: 280px;
}
.qlm-add-card__field--url input[type=text] {
  width: 100%;
  min-width: 0;
}
.qlm-add-card__field--checkbox {
  min-width: auto;
}
.qlm-add-card__field--checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 0;
}
.qlm-add-card__field--checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--qlm-primary);
}

/* Add Button */
.qlm-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--qlm-success);
  color: var(--qlm-white);
  border: none;
  border-radius: var(--qlm-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--qlm-transition);
  box-shadow: var(--qlm-shadow-sm);
  white-space: nowrap;
}
.qlm-add-btn:hover {
  background: var(--qlm-success-hover);
  box-shadow: var(--qlm-shadow);
  transform: translateY(-1px);
}
.qlm-add-btn:active {
  transform: translateY(0);
}

/* ===== Table Wrapper ===== */
.qlm-table-wrapper {
  background: var(--qlm-white);
  border: 1px solid var(--qlm-gray-200);
  border-radius: var(--qlm-radius-lg);
  overflow: hidden;
  box-shadow: var(--qlm-shadow);
  margin-bottom: 24px;
}

/* ===== Links Table ===== */
.qlm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.qlm-table thead tr {
  background: var(--qlm-gray-50);
  border-bottom: 2px solid var(--qlm-gray-200);
}
.qlm-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--qlm-gray-700);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.qlm-table tbody tr {
  border-bottom: 1px solid var(--qlm-gray-100);
  transition: background var(--qlm-transition);
}
.qlm-table tbody tr:nth-child(even) {
  background: var(--qlm-gray-50);
}
.qlm-table tbody tr:hover {
  background: rgba(34, 113, 177, 0.04);
}
.qlm-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

/* Column Widths */
.qlm-col-drag {
  width: 40px;
  text-align: center;
}

.qlm-col-title {
  width: 25%;
  min-width: 150px;
}

.qlm-col-url {
  width: auto;
}

.qlm-col-newtab {
  width: 80px;
  text-align: center;
}

.qlm-col-actions {
  width: 130px;
  text-align: right;
}

/* Drag Handle */
.qlm-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--qlm-gray-400);
  padding: 4px;
  border-radius: 4px;
  transition: all var(--qlm-transition);
}
.qlm-drag-handle:hover {
  color: var(--qlm-gray-600);
  background: var(--qlm-gray-100);
}
.qlm-drag-handle:active {
  cursor: grabbing;
}

/* Sortable Placeholder */
.qlm-sortable-placeholder {
  background: rgba(34, 113, 177, 0.1);
  border: 2px dashed var(--qlm-primary);
  height: 50px;
}

/* Inputs */
.qlm-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--qlm-gray-200);
  border-radius: 6px;
  font-size: 14px;
  transition: all var(--qlm-transition);
  background: var(--qlm-white);
}
.qlm-input:focus {
  outline: none;
  border-color: var(--qlm-primary);
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* Toggle Switch */
.qlm-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.qlm-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.qlm-toggle input:checked + .qlm-toggle__slider {
  background-color: var(--qlm-success);
}
.qlm-toggle input:checked + .qlm-toggle__slider:before {
  transform: translateX(20px);
}
.qlm-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--qlm-gray-300);
  transition: var(--qlm-transition);
  border-radius: 24px;
}
.qlm-toggle__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--qlm-white);
  transition: var(--qlm-transition);
  border-radius: 50%;
  box-shadow: var(--qlm-shadow-sm);
}

/* Actions Column */
.qlm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.qlm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--qlm-gray-200);
  border-radius: 6px;
  background: var(--qlm-white);
  color: var(--qlm-gray-500);
  cursor: pointer;
  transition: all var(--qlm-transition);
}
.qlm-btn:hover {
  background: var(--qlm-gray-100);
  color: var(--qlm-gray-700);
  border-color: var(--qlm-gray-300);
}
.qlm-btn--delete {
  color: var(--qlm-danger);
  border-color: rgba(214, 54, 56, 0.2);
}
.qlm-btn--delete:hover {
  background: var(--qlm-danger);
  color: var(--qlm-white);
  border-color: var(--qlm-danger);
}

/* ===== Empty State ===== */
.qlm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--qlm-gray-400);
  text-align: center;
}
.qlm-empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}
.qlm-empty-state p {
  margin: 0;
  font-size: 15px;
  color: var(--qlm-gray-500);
}

/* ===== Roles Card ===== */
.qlm-roles-card {
  background: linear-gradient(135deg, var(--qlm-gray-50) 0%, var(--qlm-white) 100%);
  border: 1px solid var(--qlm-gray-200);
  border-radius: var(--qlm-radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--qlm-shadow-sm);
}
.qlm-roles-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--qlm-gray-800);
  margin: 0 0 8px 0;
  padding: 0;
}
.qlm-roles-card__title svg {
  color: var(--qlm-primary);
}
.qlm-roles-card__description {
  color: var(--qlm-gray-600);
  font-size: 13px;
  margin: 0 0 16px 0;
}

.qlm-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.qlm-role-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--qlm-white);
  border: 1px solid var(--qlm-gray-200);
  border-radius: var(--qlm-radius);
  cursor: pointer;
  transition: all var(--qlm-transition);
}
.qlm-role-checkbox:hover {
  border-color: var(--qlm-primary);
  background: rgba(34, 113, 177, 0.04);
}
.qlm-role-checkbox:has(input:checked) {
  border-color: var(--qlm-primary);
  background: rgba(34, 113, 177, 0.08);
}
.qlm-role-checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--qlm-primary);
}
.qlm-role-checkbox__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--qlm-gray-700);
  text-transform: capitalize;
}

/* ===== Save Section ===== */
.qlm-save-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.qlm-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--qlm-primary);
  color: var(--qlm-white);
  border: none;
  border-radius: var(--qlm-radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--qlm-transition);
  box-shadow: var(--qlm-shadow);
}
.qlm-save-btn:hover {
  background: var(--qlm-primary-hover);
  box-shadow: var(--qlm-shadow-md);
  transform: translateY(-1px);
}
.qlm-save-btn:active {
  transform: translateY(0);
}
.qlm-save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.qlm-save-status {
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--qlm-transition);
}
.qlm-save-status.visible {
  opacity: 1;
}
.qlm-save-status.success {
  color: var(--qlm-success);
}
.qlm-save-status.error {
  color: var(--qlm-danger);
}

/* ===== Import/Export Tab ===== */
#import-export {
  background: var(--qlm-white);
  border: 1px solid var(--qlm-gray-200);
  border-radius: var(--qlm-radius-lg);
  padding: 24px;
  box-shadow: var(--qlm-shadow-sm);
}
#import-export p {
  margin-bottom: 20px;
  color: var(--qlm-gray-600);
}
#import-export input[type=file] {
  padding: 8px 0;
}
#import-export .button-primary {
  margin-left: 12px;
}

/* ===== Dashboard Widget ===== */
.pz-widget-links a {
  text-decoration: none;
  color: var(--qlm-primary);
  transition: color var(--qlm-transition);
}
.pz-widget-links a:hover {
  text-decoration: underline;
  color: var(--qlm-primary-hover);
}

.rs-pz-quicklinks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rs-pz-quicklinks li {
  padding: 8px 0;
  border-bottom: 1px solid var(--qlm-gray-100);
}
.rs-pz-quicklinks li:last-child {
  border-bottom: none;
}

.rtl {
  direction: rtl;
  text-align: right;
  padding: 12px 0;
  border-top: 1px solid var(--qlm-gray-200);
}

.footer-credits {
  border-top: 1px solid var(--qlm-gray-200);
  padding-top: 12px;
  text-align: center;
}
.footer-credits p {
  margin: 0;
  font-size: 12px;
  color: var(--qlm-gray-500);
}

/* ===== Notice Styling ===== */
.notice.rs-pz-close {
  position: relative;
}

/* ===== Admin Bar Styling ===== */
#wpadminbar ul li.hover li#wp-admin-bar-pz_quicklinks_manage {
  border-top: dashed 1px #707070;
  margin-top: 8px;
  padding-top: 3px;
}

/* ===== Responsive ===== */
@media screen and (max-width: 782px) {
  .qlm-add-card__form {
    flex-direction: column;
    align-items: stretch;
  }
  .qlm-add-card__field, .qlm-add-card__field--url {
    min-width: 100%;
  }
  .qlm-add-btn {
    width: 100%;
    justify-content: center;
  }
  .qlm-table-wrapper {
    overflow-x: auto;
  }
  .qlm-table {
    min-width: 600px;
  }
  .qlm-save-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .qlm-save-btn {
    width: 100%;
    justify-content: center;
  }
  .qlm-roles-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/*# sourceMappingURL=style.css.map */
