/* Multi Tools Plugin Styles */
.multi-tools-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

.mt-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #39cff7 0%, #005dff 100%);
  color: white;
  border-radius: 20px;
}

.mt-header h1 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 2.5em;
}

.mt-header p {
  margin: 0;
  font-size: 1.2em;
  opacity: 0.9;
}

.mt-tools-selector {
  margin-bottom: 30px;
}

.mt-tools-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1em;
  color: #333;
}

.mt-select {
  width: 100%;
  padding: 0px 12px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.mt-select:focus {
  outline: none;
  border-color: #add6ff;
}

.mt-tool {
  display: none;
}

.mt-tool.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#whois h2,
#whois-result,
#ip-lookup h2,
#ip-result {
  margin-top: 30px;
}

.mt-tool h2 {
  margin-top: 0;
  color: #333;
  border-top: 3px solid #0b7ef1;
  border-radius: 8px;
  padding: 25px 0;
}

.mt-form-group {
  margin-bottom: 20px;
}

.mt-form-group label,
.al-msg label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.mt-form-group small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.9em;
}

.mt-input {
  padding: 0px 12px !important;
}

input#qr-image-upload {
  padding: 12px !important;
}

.mt-input,
.mt-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px !important;
  font-size: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.mt-input:focus,
.mt-textarea:focus {
  outline: none;
  border-color: #add6ff;
}

.mt-textarea {
  resize: vertical;
  min-height: 240px;
  font-family: monospace;
}

.mt-button {
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.mt-button-primary {
  background: #0b7ef1;
  color: white;
  width: 100%;
}

.mt-button-primary:hover {
  transform: translateY(-2px);
}

.button-delete-red {
  background: #e94c4c;
}

.button-delete-red:hover {
  transform: translateY(-2px);
}

.mt-button-success {
  background: #0b7ef1;
  color: white;
}

.mt-button-success:hover {
  transform: translateY(-2px);
}

.mt-button-danger {
  background: #f56565;
  color: white;
}

.mt-button-danger:hover {
  background: #e53e3e;
}

.mt-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mt-result h3 {
  margin-top: 0;
  color: #333;
}

.mt-result-box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mt-result-box .mt-input {
  flex: 1;
}

#qr-code-display {
  display: flex;
  justify-content: center;
}

#qr-code-display,
#vietqr-display {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  margin: 20px 0;
}

#qr-code-display canvas,
#vietqr-display canvas {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* QR Scanner Styles */
.mt-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.mt-tab-btn {
  width: 50%;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  transition: all 0.3s;
}

.mt-tab-btn.active {
  color: #0ba9f7;
  border-bottom-color: #0ba9f7;
}

.mt-tab-btn:hover {
  color: #0ba9f7;
}

.mt-tab-pane {
  display: none;
}

.mt-tab-pane.active {
  display: block;
}

#qr-reader {
  border-radius: 8px;
  overflow: hidden;
}

#qr-reader video {
  width: 100%;
  height: auto;
}

#qr-scan-result .mt-button-success {
  margin-top: 20px;
}

/* Info Grid Styles */
.mt-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.mt-info-item {
  padding: 15px;
  background: white;
  border-radius: 6px;
  border-left: 3px solid #ff5a5a;
}

.mt-info-item strong {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-size: 0.9em;
}

.mt-info-item span {
  color: #333;
  font-size: 1em;
}

.mt-info-section {
  margin-top: 25px;
}

.mt-info-section h4 {
  margin-bottom: 10px;
  color: #000000;
  font-size: 1.1em;
}

/* IP Lookup Styles */
.mt-ip-address {
  text-align: center;
  margin: 20px 0;
}

.mt-ip-address h4 {
  color: #555;
  margin-bottom: 10px;
}

.mt-ip-value {
  font-size: 2em;
  font-weight: bold;
  color: #2096ff;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
  min-width: 200px;
}

/* 2FA */
.bg-none {
  border: none;
  background: none;
}

/* Loading Spinner */
.mt-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Alert Messages */
.mt-alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.mt-alert-success {
  background: #c6f6d5;
  color: #22543d;
  border-left: 4px solid #48bb78;
}

.mt-alert-error {
  background: #fed7d7;
  color: #742a2a;
  border-left: 4px solid #f56565;
}

.mt-alert-info {
  background: #bee3f8;
  color: #2c5282;
  border-left: 4px solid #4299e1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .multi-tools-container {
    padding: 10px;
  }

  .mt-header h1 {
    font-size: 1.8em;
  }

  .mt-header p {
    font-size: 1em;
  }

  .mt-tools-content {
    padding: 20px;
  }

  .mt-result-box {
    flex-direction: column;
  }

  .mt-result-box .mt-button {
    width: 100%;
  }

  .mt-info-grid {
    grid-template-columns: 1fr;
  }

  .mt-ip-value {
    font-size: 1.5em;
    min-width: auto;
  }
}

/* Print Styles */
@media print {
  .mt-button,
  .mt-tools-selector,
  .mt-tabs {
    display: none;
  }
}

/* Account Lookup Styles */
.mt-warning-box {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.mt-warning-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.mt-warning-box a {
  color: rgb(16, 185, 129);
  text-decoration: underline;
}

.mt-description {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.service-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.service-logo,
.service-logo-small {
  width: 32px;
  height: 32px;
  object-fit: contain;
  padding: 2px;
}

.service-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Logo trong selected item */
.service-selection {
  display: flex;
  align-items: center;
  gap: 8px;
}

.al-error {
  background: #f8d7da;
  border: 2px solid #f5c6cb;
  color: #721c24;
}

.al-warning-msg {
  background: #fff3cd;
  border: 2px solid #ffc107;
  color: #856404;
}

.al-result-box {
  margin-bottom: 21px;
}

.al-result-box strong {
  display: block;
  margin-bottom: 6px;
}

.al-result-box code {
  display: block;
  padding: 6px 12px !important;
}

.al-support {
  margin-top: 15px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.al-support strong {
  display: block;
  margin-bottom: 8px;
}

@keyframes alSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Logo in Dropdown */
.service-logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 4px;
  display: inline-block;
}

/* Select2 Custom Styling for Service Dropdown */
.select2-container--default .select2-selection--single {
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 43px !important;
}

/* Remove scroll from Select2 dropdown */
.select2-results__options {
  max-height: none !important;
  overflow-y: visible !important;
}

.select2-results__option {
  margin: 0 5px 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.select2-results__option--selected,
.select2-results__option--highlighted.select2-results__option--selectable {
  background-color: rgba(0, 123, 255, 0.08) !important;
  color: #1f2d3a !important;
}

.select2-results__option--selected:hover {
  background-color: rgba(0, 123, 255, 0.08);
  color: #0056b3;
}

/* Make sure logo and text are inline in Select2 */
.select2-results__option span,
.select2-selection__rendered span {
  display: inline-flex !important;
  align-items: center !important;
}

.select2-search--dropdown .select2-search__field {
  border-radius: 4px;
}

/* IP Information Table */
.ip-info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ip-info-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.ip-info-table tbody tr:last-child {
  border-bottom: none;
}

.ip-info-table td {
  padding: 16px 20px !important;
}

.ip-info-table .ip-label {
  font-weight: 600;
  color: #555;
  width: 200px;
  background: #f8f9fa;
}

.ip-info-table .ip-value {
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.ip-info-table .ip-value a {
  color: #007bff;
  text-decoration: none;
}

.ip-info-table .ip-value a:hover {
  text-decoration: underline;
}

/* Custom Dropdown Styles */
.mt-custom-dropdown {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.mt-dropdown-selected {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
}

.mt-dropdown-selected:hover {
  border-color: #b3e5fc;
}

.mt-dropdown-selected.active {
  border-color: #0bb6f7;
}

.mt-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mt-dropdown-options.show {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.mt-option-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f5f5f5;
}

.mt-option-item:last-child {
  border-bottom: none;
}

.mt-option-item:hover {
  background-color: #f0f9ff;
}

.mt-option-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.mt-option-text {
  font-size: 15px;
  color: #333;
}

.mt-arrow-down {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s;
}

.mt-dropdown-selected.active .mt-arrow-down {
  transform: rotate(180deg);
}

/* Selected item style inside trigger */
.mt-selected-item-view {
  display: flex;
  align-items: center;
  gap: 10px;
}
