/* Custom Plugin Frontend Styles */

.custom-plugin-form {
  max-width: 500px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #f9f9f9;
}

.custom-plugin-form h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 10px;
}

.custom-plugin-form p {
  margin-bottom: 15px;
}

.custom-plugin-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.custom-plugin-form input[type="text"],
.custom-plugin-form input[type="email"],
.custom-plugin-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.custom-plugin-form input[type="text"]:focus,
.custom-plugin-form input[type="email"]:focus,
.custom-plugin-form textarea:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.custom-plugin-form button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.custom-plugin-form button:hover {
  background: #005177;
}

.custom-plugin-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Response messages */
#custom-plugin-response {
  margin-top: 15px;
  padding: 10px;
  border-radius: 3px;
  display: none;
}

#custom-plugin-response.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#custom-plugin-response.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Custom message styles */
.custom-plugin-message {
  padding: 15px;
  margin: 20px 0;
  border-left: 4px solid #0073aa;
  background: #f0f8ff;
  border-radius: 0 3px 3px 0;
}

.custom-plugin-message-default {
  border-left-color: #0073aa;
  background: #f0f8ff;
}

.custom-plugin-message-success {
  border-left-color: #28a745;
  background: #d4edda;
  color: #155724;
}

.custom-plugin-message-warning {
  border-left-color: #ffc107;
  background: #fff3cd;
  color: #856404;
}

.custom-plugin-message-error {
  border-left-color: #dc3545;
  background: #f8d7da;
  color: #721c24;
}

/* Data display table */
.custom-plugin-data {
  margin: 20px 0;
}

.custom-plugin-data h3 {
  margin-bottom: 15px;
  color: #333;
}

.custom-plugin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.custom-plugin-table th,
.custom-plugin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.custom-plugin-table th {
  background: #f8f9fa;
  font-weight: bold;
  color: #555;
}

.custom-plugin-table tr:hover {
  background: #f5f5f5;
}

/* Responsive design */
@media (max-width: 768px) {
  .custom-plugin-form {
    padding: 15px;
    margin: 15px 0;
  }

  .custom-plugin-table {
    font-size: 14px;
  }

  .custom-plugin-table th,
  .custom-plugin-table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .custom-plugin-table,
  .custom-plugin-table thead,
  .custom-plugin-table tbody,
  .custom-plugin-table th,
  .custom-plugin-table td,
  .custom-plugin-table tr {
    display: block;
  }

  .custom-plugin-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .custom-plugin-table tr {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
  }

  .custom-plugin-table td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  .custom-plugin-table td:before {
    content: attr(data-label) ": ";
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
  }
}

@media (max-width: 768px) {
    .fl-col-small:not(.fl-col-small-full-width) {
        max-width: 100% !important;
    }
}

@media (min-width: 768px) {
.uabb-has-submenu > .sub-menu {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;

transition:
    max-height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.45s;

}

.uabb-has-submenu:hover > .sub-menu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.uabb-has-submenu.uabb-menu-active > .sub-menu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

}