/* ===============================
   Shekhar Social Connect PREMIUM UI
=============================== */

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Apply font */
.wrap,
.wrap * {
    font-family: 'Inter', sans-serif !important;
}

/* Page background */
.wrap {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
}

/* Plugin Title */
.wrap h1 {
    font-size: 26px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

/* Tabs */
.nav-tab-wrapper {
    border-bottom: none;
    margin-bottom: 25px;
}

.nav-tab {
    background: #ffffff;
    border: none;
    padding: 10px 18px;
    margin-right: 8px;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-tab:hover {
    background: #DFFF00;
    color: #000;
}

.nav-tab-active {
    background: #CCFF00 !important;
    color: #000 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===============================
   PREMIUM CARD SECTION STYLE
=============================== */

/* Form Card Container */
.form-table {
    width: 100%;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    border-collapse: separate;
    border-spacing: 0 22px;
    /* vertical spacing between rows */
}

/* Label Column */
.form-table th {
    width: 220px;
    padding-left: 10px !important;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    vertical-align: middle;
}

/* Field Column */
.form-table td {
    padding-right: 10px !important;
}

/* ===============================
   SAFE INPUT STYLING
=============================== */

.form-table input:not(.wp-color-picker),
.form-table select,
.form-table textarea {
    min-width: 280px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fafafa;
    transition: all 0.25s ease;
}

/* Focus State */
.form-table input:focus,
.form-table select:focus,
.form-table textarea:focus {
    background: #ffffff;
    border-color: #CCFF00;
    box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.25);
    outline: none;
}

/* Dropdown Arrow Better Alignment */
.form-table select {
    cursor: pointer;
}

/* Small Description Text */
.form-table p.description {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

/* Checkbox Styling */
.form-table input[type="checkbox"] {
    min-width: auto;
    transform: scale(1.1);
    accent-color: #CCFF00;
}

/* Radio Button Styling */
.form-table input[type="radio"] {
    accent-color: #CCFF00;
}

/* Divider Line under Tabs */
.nav-tab-wrapper+hr {
    display: none;
}

/* Buttons */
.button-primary {
    background: #CCFF00 !important;
    border: none !important;
    color: #000 !important;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    transition: 0.3s;
}

.button-primary:hover {
    background: #DFFF00 !important;
    color: #000 !important;
}

/* Dashboard welcome box */
.wrap p,
.wrap li {
    color: #333;
    font-size: 14px;
}

/* ===============================
   PREMIUM COLOR PICKER
=============================== */

/* Color picker wrapper */
.wp-picker-container {
    display: inline-block;
}

/* Color button */
.wp-color-result {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    height: 36px !important;
    width: 70px !important;
    transition: 0.3s ease;
}

/* When color selected */
.wp-color-result:focus,
.wp-color-result:hover {
    border-color: #CCFF00 !important;
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.25);
}

/* Active opened state */
.wp-picker-active .wp-color-result {
    border-color: #CCFF00 !important;
}

/* Remove default WP arrow */
.wp-color-result-text {
    display: none !important;
}

/* ===============================
   FIXED PREMIUM COLOR PICKER
=============================== */

.wp-picker-container {
    display: inline-block;
}

/* Keep color preview visible */
.wp-color-result {
    border-radius: 8px !important;
    border: 2px solid #e0e0e0 !important;
    height: 36px !important;
    width: 60px !important;
    padding: 0 !important;
    transition: 0.3s ease;
}

/* Hover effect */
.wp-color-result:hover {
    border-color: #CCFF00 !important;
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.25);
}

/* Active state */
.wp-picker-active .wp-color-result {
    border-color: #CCFF00 !important;
}

/* Input field beside color */
.wp-picker-container input.wp-color-picker {
    min-width: 120px !important;
    border-radius: 8px !important;
}

/* ===============================
   FIX DROPDOWN ARROW
=============================== */

.form-table select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #fafafa;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

/* ===============================
   RESTORE WP COLOR PICKER
=============================== */


.wp-picker-container input.wp-color-picker {
    min-width: 120px !important;
}