@charset "UTF-8";
/**
 * CodeSnippet AJAX Styles
 * 
 * Styles for AJAX functionality in the CodeSnippet list page
 * 
 * @package WCF_ADDONS\CodeSnippet
 * @since 2.3.10
 */
/* Loading States */
.wcf-code-snippet-admin .loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
  background-color: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
}

.wcf-code-snippet-admin .loading:before {
  content: "⏳";
  margin-right: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Error States */
.wcf-code-snippet-admin .error {
  text-align: center;
  padding: 20px;
  color: #d63638;
  background-color: #fcf0f1;
  border: 1px solid #f0b7b8;
  border-radius: 4px;
}

.wcf-code-snippet-admin .error:before {
  content: "⚠️";
  margin-right: 8px;
}

/* AJAX Delete Links */
.wcf-code-snippet-admin .ajax-delete-snippet {
  color: #a00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wcf-code-snippet-admin .ajax-delete-snippet:hover {
  color: #dc3232;
  text-decoration: underline;
}

/* Success Notices */
.wrap.wcf-code-snippet-admin .notice {
  margin: 5px 0 15px 0;
  animation: slideDown 0.3s ease-out;
  border-color: #e1e4ea;
  border-left-color: #4ade80;
  padding: 6px 15px;
  right: 20px;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
  transition: unset !important;
  top: 4%;
  z-index: 9;
  left: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Toggle Switch Styles */
.wcf-code-snippet-admin .toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.wcf-code-snippet-admin .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wcf-code-snippet-admin .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(156, 163, 175);
  transition: 0.4s;
  border-radius: 24px;
}

.wcf-code-snippet-admin .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wcf-code-snippet-admin input:checked + .slider {
  background-color: #4ADE80;
}

.wcf-code-snippet-admin input:checked + .slider:before {
  transform: translateX(26px);
}

.wcf-code-snippet-admin .slider:hover {
  box-shadow: 0 0 8px rgba(34, 113, 177, 0.3);
}

/* Code Type Badges */
.wcf-code-snippet-admin .code-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.wcf-code-snippet-admin .code-type-html {
  background-color: #e34c26;
  color: white;
}

.wcf-code-snippet-admin .code-type-css {
  background-color: #1572b6;
  color: white;
}

.wcf-code-snippet-admin .code-type-javascript {
  background-color: #f7df1e;
  color: #000;
}

.wcf-code-snippet-admin .code-type-php {
  background-color: #777bb4;
  color: white;
}

/* Load Location Badges */
.wcf-code-snippet-admin .load-location {
  padding: 3px 8px;
  background-color: #f0f0f1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #50575e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wcf-code-snippet-admin .load-location.empty {
  background-color: inherit !important;
  color: #000;
}

/* Priority Badges */
.priority.column-priority {
  margin-top: 8px;
}

/* Table Row Animations */
.wcf-code-snippet-admin .wp-list-table tbody tr {
  transition: all 0.3s ease;
}

.wcf-code-snippet-admin .wp-list-table tbody tr:hover {
  background-color: #f6f7f7;
}

.wcf-code-snippet-admin .wp-list-table tbody tr.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

/* Bulk Delete Animation */
.wcf-code-snippet-admin .wp-list-table tbody tr.deleting {
  background-color: #fcf0f1;
  border-left: 4px solid #dc3232;
  transition: all 0.4s ease;
}

/* Toggle Update Animation */
.wcf-code-snippet-admin .wp-list-table tbody tr.updating {
  background-color: #f0f6fc;
  border-left: 4px solid #2271b1;
  transition: all 0.3s ease;
}

.wcf-code-snippet-admin .wp-list-table tbody tr.updating .snippet-status-toggle {
  opacity: 0.6;
  pointer-events: none;
}

/* Status Row Classes */
.wcf-code-snippet-admin .wp-list-table tbody tr.snippet-active {
  border-left: 3px solid #00a32a;
}

.wcf-code-snippet-admin .wp-list-table tbody tr.snippet-inactive {
  border-left: 3px solid #dba617;
  opacity: 0.8;
}

/* Search Input Enhancements */
.wcf-code-snippet-admin #s {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wcf-code-snippet-admin #s:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

/* Filter Links */
.wcf-code-snippet-admin .subsubsub a {
  transition: color 0.2s ease;
}

.wcf-code-snippet-admin .subsubsub a:hover {
  color: #2271b1;
}

.wcf-code-snippet-admin .subsubsub a:focus {
  box-shadow: unset;
}

.wcf-code-snippet-admin .subsubsub a.current {
  font-weight: 600;
}

/* Bulk Action Buttons */
.wcf-code-snippet-admin #doaction,
.wcf-code-snippet-admin #doaction2 {
  transition: background-color 0.2s ease;
}

.wcf-code-snippet-admin #doaction:hover,
.wcf-code-snippet-admin #doaction2:hover {
  background-color: #f0f0f1;
}

/* Checkbox Styling */
.wcf-code-snippet-admin input[type=checkbox] {
  transition: transform 0.2s ease;
}

.wcf-code-snippet-admin input[type=checkbox]:checked {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 782px) {
  .wcf-code-snippet-admin .toggle-switch {
    width: 40px;
    height: 20px;
  }
  .wcf-code-snippet-admin .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
  }
  .wcf-code-snippet-admin input:checked + .slider:before {
    transform: translateX(20px);
  }
  .wcf-code-snippet-admin .code-type,
  .wcf-code-snippet-admin .load-location,
  .wcf-code-snippet-admin .priority {
    font-size: 10px;
    padding: 2px 6px;
  }
}
/* Accessibility Improvements */
.wcf-code-snippet-admin .toggle-switch:focus-within .slider {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

.wcf-code-snippet-admin .ajax-delete-snippet:focus {
  outline: 2px solid #dc3232;
  outline-offset: 2px;
}