#schedule_list {
  display: flex;
  flex-wrap: wrap;   /* agar zyada ho to next line me chala jaye */
  gap: 15px;
  list-style: none;
  padding: 0;
}
#schedule_list li {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Fieldset styling */
.mt-mode-options {
    border: 1px solid #ccd0d4;
    padding: 15px 20px;
    border-radius: 6px;
    background: #fff;
    margin-top: 10px;
}

/* Radio buttons */
.mt-radio {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #23282d;
    cursor: pointer;
}

/* Extra fields (hidden by default) */
.mt-extra-field {
    margin: 8px 0 18px 28px; /* slight indent from radio */
    padding: 12px;
    border-left: 3px solid #007cba;
    background: #f9f9f9;
    border-radius: 4px;
    display: none; /* hidden until radio selected */
}

/* Labels inside extra fields */
.mt-extra-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

/* Textareas */
.mt-extra-field textarea {
    width: 100%;
    max-width: 500px;
    min-height: 70px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    transition: border 0.2s ease;
}

.mt-extra-field textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}


/* 🔹 Premium Settings Page Look */
.wrap h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #23282d;
  border-bottom: 2px solid #2271b1;
  padding-bottom: 8px;
}

/* Settings table styling */
.form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.form-table th {
  text-align: left;
  font-weight: 600;
  padding: 15px;
  width: 250px;
  background: #f8f9fa;
  border-radius: 8px 0 0 8px;
  border: 1px solid #e2e5e9;
  border-right: none;
}

.form-table td {
  padding: 15px;
  background: #ffffff;
  border-radius: 0 8px 8px 0;
  border: 1px solid #e2e5e9;
  border-left: none;
  vertical-align: middle;
}

/* Radio buttons and labels */
.form-table td label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0;
  cursor: pointer;
}

.form-table td input[type="radio"] {
  transform: scale(1.2);
  cursor: pointer;
  accent-color: #2271b1;
}

/* Custom input field */
.form-table td input[type="text"].regular-text {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-table td input[type="text"].regular-text:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
  outline: none;
}

/* Description text */
.form-table td .description {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

/* Submit button */
p.submit .button-primary {
  background: linear-gradient(135deg, #2271b1, #135e96);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: background 0.2s ease, transform 0.1s ease;
}

p.submit .button-primary:hover {
  background: linear-gradient(135deg, #135e96, #0a4b78);
  transform: translateY(-1px);
}


/* General setting css start */
     /* General container cleanup and spacing */
        .wrap {
            max-width: 1200px; /* Increased for two-column layout */
        }
        .regular-text{
          width:100% !important;
          max-width: 1000px !important;
        }

        /* Style for the main settings table (API Key) */
        .form-table th {
            width: 200px;
            padding-top: 15px;
            padding-bottom: 15px;
        }

        /* Container for content types grid */
        .mt-content-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* Two equal columns */
            gap: 20px; /* Space between columns */
            margin-top: 20px;
        }

        /* Styling the individual content type fieldsets */
        fieldset {
            border: 1px solid #c3c4c7;
            padding: 20px !important;
            margin-bottom: 0 !important; /* Remove bottom margin as grid handles spacing */
            border-radius: 4px;
            background-color: #f7f7f7;
            height: fit-content; /* Allow natural height */
            align-self: start; /* Prevent stretching */
        }

        fieldset > label {
            font-weight: 600;
            display: block;
            margin-bottom: 15px;
        }

        /* Styling the extra fields section */
        .mt-extra-fields {
            border-top: 1px solid #ddd;
            padding-top: 15px;
            margin-top: 15px !important;
            padding-left: 10px;
        }

        .mt-extra-fields p label,
        .mt-extra-fields h4 {
            font-weight: 500;
            margin-top: 15px;
            margin-bottom: 5px;
            display: block;
        }

        /* Datetime picker and button alignment */
        .mt-datetime-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .mt-datetime-wrapper input[type="datetime-local"] {
            flex: 1;
            min-width: 200px;
        }

        .regular-text,
        textarea {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        /* Schedule List Styling */
        .mt-schedule-list {
            margin-top: 15px;
            padding: 10px;
            background-color: #fff;
            border: 1px solid #eee;
            border-radius: 4px;
            min-height: 40px;
        }

        .mt-schedule-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 10px;
            margin-bottom: 5px;
            border-bottom: 1px dotted #ccc;
            font-size: 14px;
            background-color: #fafafa;
            border-radius: 3px;
        }

        .mt-schedule-row:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .mt-remove-schedule {
            background: #f0f0f0;
            color: #a00;
            border: 1px solid #cc9a9a;
            line-height: 1;
            padding: 4px 8px;
            cursor: pointer;
            transition: background-color 0.1s ease;
            flex-shrink: 0;
        }

        .mt-remove-schedule:hover {
            background: #fcc;
            color: #900;
        }

        /* Save Settings Button */
        .button-primary {
            margin-top: 20px;
        }

        /* Responsive: Stack on smaller screens */
        @media (max-width: 768px) {
            .mt-content-grid {
                grid-template-columns: 1fr;
            }
        }