/* ===============================
 GAB - Modern UI Styling
================================ */

#gab-tabs {
    max-width: 1100px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

.wrap {
    margin: 24px auto;
    max-width: 1140px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

h1 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #111827;
}

/* ===============================
   Tabs
================================ */

.nav-tab-wrapper {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.nav-tab {
    padding: 10px 18px;
    margin-right: 8px;
    text-decoration: none;
    font-weight: 600;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 10px 10px 0 0;
    transition: all 0.25s ease;
}

.nav-tab:hover {
    background: #e5e7eb;
    color: #0073aa;
}

.nav-tab-active {
    background: #ffffff;
    color: #0073aa;
    border-bottom: 2px solid #ffffff;
}

/* ===============================
   Section Cards
================================ */

.gab-tab-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.gab-tab-content:hover {
    transform: translateY(-1px);
}

.gab-tab-content .tab-heading {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* ===============================
   Form Table
================================ */

.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table th {
    width: 260px;
    padding: 16px 12px 16px 0;
    font-weight: 500;
    color: #1d2327;
}

.form-table td {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f1;
}

/* ===============================
   Radio & Checkbox Styling
================================ */

.form-table td label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    font-weight: 500;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #0073aa;
    cursor: pointer;
}

/* ===============================
   Inputs & Selects
================================ */

input[type="text"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

select {
    max-width: 300px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

/* Compact Inputs for Spacing/Numeric Fields */
.gab-compact-input {
    width: 60px !important;
    padding: 8px !important;
    text-align: center;
}

.gab-padding-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.gab-padding-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* ===============================
   Color Picker
================================ */

input[type="color"] {
    width: 72px;
    height: 44px;
    padding: 0;
    cursor: pointer;
}

/* ===============================
   Editor (WYSIWYG)
================================ */

#gab_content-wrap {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    overflow: hidden;
}

.wp-editor-tabs {
    background: #f9fafb;
    padding: 8px 12px;
}

.wp-editor-tabs button[aria-pressed="true"] {
    border: 1px solid #0073aa !important;
}

.wp-editor-area {
    min-height: 130px;
    font-size: 14px;
    line-height: 1.6;
    padding: 14px;
}

#gab_content-tmce,
#gab_content-html {
    transition: all 0.3s ease;
}

#gab_content-tmce:not([aria-pressed="true"]):hover,
#gab_content-html:not([aria-pressed="true"]):hover {
    color: #fff;
}

#gab_content {
    max-width: none;
    width: 100%;
}

.toplevel_page_gotechark-announcement-bar .notice-dismiss {
    padding: 0;
    margin: 9px;
    background: none;
    box-shadow: none;
}

/* ===============================
   Multiple Buttons Section
================================ */

#gab-multiple-buttons .gab-multiple-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#gab-multiple-buttons input {
    flex: 1;
}

#gab-multiple-buttons .gab-remove-button {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
}

#gab-multiple-buttons .gab-remove-button:hover {
    background: #dc2626;
}

#gab-add-button {
    margin-top: 10px;
    background: #22c55e;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

#gab-add-button:hover {
    background: #16a34a;
}

.nav-tab:hover {
    background: #f9f9f9;
    color: #0073aa;
}

#responsive-css-settings .responsive-rule .remove-rule {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;

}

#responsive-css-settings .responsive-rule .remove-rule:hover {
    background: #cc0000;
}

#gab-multiple-buttons .gab-remove-button:hover {
    background: #c53030;
}

.mce-btn button:hover {
    background: none;
}

/* ===============================
   Responsive Rules
================================ */

#responsive-css-settings .responsive-rule {
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: flex-end;
}

#responsive-css-settings .responsive-rule hr {
    display: none;
}

#responsive-css-settings .responsive-rule .remove-rule {
    grid-column: span 2;
    justify-self: start;
    margin-top: 10px;
    background: #fee2e2;
    color: #ef4444;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #fecaca;
}

#responsive-css-settings .responsive-rule .remove-rule:hover {
    background: #ef4444;
    color: #fff;
}

.responsive-rule-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.responsive-rule-group label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    margin: 0 !important;
}

.responsive-rule-group.full-width {
    grid-column: span 2;
}

.responsive-rule-group select {
    max-width: none;
}

#responsive-css-settings label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

#responsive-css-settings textarea {
    font-family: monospace;
    background: #f9fafb;
}

/* ===============================
   Buttons (Primary)
================================ */

button,
input[type="submit"],
#add-responsive-rule {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

button:hover,
input[type="submit"]:hover,
#add-responsive-rule:hover {
    background-color: #005d8b;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ===============================
   Responsive
================================ */

@media (max-width: 768px) {

    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }
}