/* Basic styles for the admin interface */
.tab-content {
  display: none;
}

.tab-content:first-of-type {
  display: block;
}
/* Styles for the nav tabs */
.nav-tab-wrapper {
  margin-bottom: 20px;
}

.nav-tab {
  display: inline-block;
  padding: 10px 10px;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  color: #0073aa;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: center;
  width: max-content;
  align-items: center;
  justify-content: center;
  height: 6vh;
}

.nav-tab:hover {
  background-color: #e1e1e1;
}

.nav-tab-active {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  font-weight: bold;
}

/* Styles for the tab content */
.tab-content {
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
}

/* Styles for form elements */
.form-table th {
  width: 150px;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.form-table td {
  padding: 10px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="password"],
.form-table select,
.form-table textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  box-sizing: border-box;
}

.form-table input[type="submit"] {
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  cursor: pointer;
}

.form-table input[type="submit"]:hover {
  background-color: #005177;
}

/* Styles for the widefat table */
.widefat th,
.widefat td {
  padding: 10px;
  vertical-align: middle;
}

.widefat th {
  background-color: #f9f9f9;
}

.widefat tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.widefat tbody tr:hover {
  background-color: #f1f1f1;
}

.widefat .column-action {
  width: 100px;
  text-align: center;
}

.widefat .button-secondary {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.widefat .button-secondary:hover {
  background-color: #005177;
}

/* Additional styles for visual enhancements */
h2 {
  margin-top: 20px;
}

.submit {
  margin-top: 20px;
}

/* Spinner */
.spinner.is-active {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* Modal */
#related-posts-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  padding: 20px;
}

#related-posts-modal .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

#related-posts-modal .content {
  margin-top: 20px;
}

/* Widget Container */
.ai-content-pipelines-widget {
  background-color: #f7fafd; /* Light blue background */
  border-left: 4px solid #0073aa; /* WordPress blue border */
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Widget Title */
.ai-content-pipelines-widget h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #0073aa; /* WordPress blue */
}

/* Button */
.ai-content-pipelines-widget .button {
  background-color: #0073aa; /* WordPress blue */
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease; /* Smooth transition */
  margin-top: 10px;
}

/* Button Hover State */
.ai-content-pipelines-widget .button:hover {
  background-color: #005f8d; /* Slightly darker blue on hover */
}

/* Paragraph Margin */
.ai-content-pipelines-widget p {
  margin: 15px 0 0;
  text-align: center; /* Center-align the button */
}

.nav-tab-user-wrapper {
  margin-bottom: 20px;
}

.nav-tab-user {
  display: inline-block;
  padding: 10px 5px;
  margin-right: 5px;
  border: 1px solid #ccc;
  border-bottom: none;
  background-color: #f1f1f1;
  color: #0073aa;
  text-decoration: none;
  cursor: pointer;
}

.nav-tab-user:hover {
  background-color: #e1e1e1;
}

.nav-tab-user-active {
  background-color: #fff;
  border-bottom: 1px solid #fff;
  font-weight: bold;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.flex-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-weightage-item,
.template-weightage-item {
    width: 100%;
}

.weightage-input {
    width: 50px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.welcome-screen {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #f7f9fc;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.welcome-screen h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-screen h2 {
    color: #444;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.welcome-screen ul {
    list-style-type: none;
    padding: 10;
}

.welcome-screen ul li {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.welcome-screen ul li p {
    margin: 10px 0 0 0;
    color: #555;
    font-size: 1.1em;
}

.welcome-screen .video-container {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.welcome-screen a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.welcome-screen a:hover {
    text-decoration: underline;
}

.welcome-screen p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 15px 0;
    text-align: center;
}
