/* 
 * Bucket Management CSS
 * Định dạng cho module quản lý bucket trong plugin
 */

/* Bucket Management Styles */
.leopard-bucket-management-wrap h2 {
  color: #e53935;
  margin-bottom: 20px;
}

.connection-status-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.test-connection-section {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#connection-results {
  margin-top: 10px;
  display: none;
}

.leopard-loading {
  display: none;
}

.leopard-loading .spinner {
  float: none;
}

.bucket-action-buttons {
  display: flex;
  gap: 5px;
}

.empty-bucket {
  display: none;
  background: #f0ad4e;
  border-color: #eea236;
}

.debug-info {
  display: none;
}

.debug-info pre {
  max-height: 300px;
  overflow: auto;
  background: #f0f0f0;
  padding: 10px;
  font-size: 12px;
}

#copy_files_to_bucket_card .current-sync-process {
  color: #333333;
  padding-bottom: 5px;
}

#copy_files_to_bucket_card .step-1 .current-sync-process {
  visibility: hidden;
  padding-bottom: 10px;
}

.card .output li {
  font-size: 11px;
}

.card .output ul {
  height: 100px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.copy-process.step-1 {
  padding-bottom: 20px;
}

.leopard-tooltip {
  text-decoration: none;
  position: relative;
}
 
.leopard-tooltip span {
  display: none;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  color: black;
  background: white; 
}
 
.leopard-tooltip span img {
  float: left;
  margin: 0px 8px 8px 0;
  max-width: 100%;
  height: auto;
}
 
.leopard-tooltip:hover span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: auto;
  min-width: 600px;
  height: auto;
  border: 1px solid black;
  margin-top: 12px;
  margin-left: 32px;
  overflow: hidden;
  padding: 8px;
}

/* Import/Export Styles */
#downloadAnchorElem {
  display: none;
}

/* Provider Description Styles */
.nou_leopard_wom_description {
  margin-top: 10px;
}

.wom_import label {
  position: relative;
}

.wom_import label input {
  position: absolute;
  right: -20%;
}

/* Toggle Switch Styles */
.nou_leopard_toggle_container {
  display: flex;
  align-items: center;
  margin-left: 11rem;
}

.nou_leopard_toggle_switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  margin-right: 10px;
}

.nou_leopard_toggle_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.nou_leopard_toggle_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.nou_leopard_toggle_slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.nou_leopard_toggle_switch input:checked + .nou_leopard_toggle_slider {
  background-color: #2196F3;
}

.nou_leopard_toggle_switch input:checked + .nou_leopard_toggle_slider:before {
  transform: translateX(30px);
}

.nou_leopard_toggle_label {
  font-weight: normal;
  margin-right: 10px;
}

.nou_leopard_toggle_status {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
}

.nou_leopard_toggle_status.enabled {
  background-color: #e1f5e1;
  color: #107c10;
}

.nou_leopard_toggle_status.disabled {
  background-color: #f8d7da;
  color: #721c24;
}

.nou_leopard_toggle_status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.nou_leopard_toggle_status.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* CORS warning dialog */
.nou_leopard_wom_cors_warning {
  background-color: #fff8e5;
  border: 1px solid #f0c36d;
  border-radius: 3px;
  padding: 15px;
  margin: 10px 0;
}

.nou_leopard_wom_cors_warning p {
  margin: 0 0 10px 0;
}

.nou_leopard_wom_cors_warning strong {
  color: #e67e22;
}

/* Font CORS button */
#nou_leopard_wom_font_cors {
  margin-left: 10px !important;
}

/* Smart Wizard Styles */
#smartwizard {
  max-width: 500px;
}

@media all and (max-width: 767px) {
  #smartwizard {
    max-width: 400px;
  }
}

table.wc_status_table td mark, table.wc_status_table th mark {
  background: transparent none;
}

table.wc_status_table td mark.yes, table.wc_status_table th mark.yes {
  color: #7ad03a;
}