/* CABVAL Floating Social Tab - Núbol Solutions S. de R.L. de C.V. */

.nubol-floating-social-tab {
    background: var(--nubol-social-tab-bg, #545454);
    position: fixed;
    display: flex;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

/* Posiciones */
.nubol-pos-top-left     { top: 0.75rem; left: 0.75rem; transform: none; }
.nubol-pos-top-center   { top: 0.75rem; left: 50%; transform: translateX(-50%); }
.nubol-pos-top-right    { top: 0.75rem; right: 0.75rem; transform: none; }
.nubol-pos-center-left  { top: 50%; left: 0.75rem; transform: translateY(-50%); }
.nubol-pos-center-right { top: 50%; right: 0.75rem; transform: translateY(-50%); }
.nubol-pos-bottom-left  { bottom: 0.75rem; left: 0.75rem; transform: none; }
.nubol-pos-bottom-center{ bottom: 0.75rem; left: 50%; transform: translateX(-50%); }
.nubol-pos-bottom-right { bottom: 0.75rem; right: 0.75rem; transform: none; }

.nubol-social-icon {
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

/* Hover */
.nubol-social-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* Orientación por defecto: horizontal */
.nubol-floating-social-tab {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* Orientación vertical para posiciones centrales laterales */
.nubol-pos-center-left,
.nubol-pos-center-right {
    flex-direction: column;
}

/*-------------- Admin UI -----------------*/
.nubol-tabs {
    margin: 20px 20px 0px 10px;
}

.nubol-tab-button {
    background: #f1f1f1;
    padding: 8px 16px;
    cursor: pointer;
    margin-right: 1px;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
    border: 1px solid #ccc;
}

.nubol-tab-button.active {
    background: #fff;
    /*border-bottom: 2px solid #0073aa;*/
	border-bottom: 2px solid white;
    font-weight: bold;
}

.nubol-tab-content {
	margin: -2px 0px 0px 0px;
	background: white;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid #ccc;
}

.nubol-position-selector {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(3, 50px);
    gap: 10px;
    width: max-content;
    margin: 10px 0;
}

.nubol-pos-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}

.nubol-pos-marker:hover {
    background: #f0f0f0;
    border-color: #999;
}

input[id^="nubol-pos-"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nubol-pos-dot {
    width: 14px;
    height: 14px;
    background: #bbb;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    pointer-events: none;
}

.nubol-pos-marker.nubol-pos-selected .nubol-pos-dot {
    background: #0073aa;
    transform: scale(1.3);
}

.nubol-position-empty {
    /* celda central vacía */
}

.nubol-custom-networks-table {
	padding: 5px;
}

.nubol-custom-networks-table thead th {
	text-align: center;
}

.nubol-custom-networks-table thead th.name-column {
	min-width: 200px;
}

.nubol-custom-networks-table thead th.url-column,
.nubol-custom-networks-table thead th.media-select-column {
	width: 50%;
}

.nubol-custom-networks-table thead th.icon-preview-column {
	width: 60px;
	min-width: 60px;
	max-width: 60px;
}

.nubol-custom-networks-table thead th.actions-column {
	width: 120px;
	min-width: 120px;
	max-width: 120px;
}

.nubol-custom-networks-table td {
    vertical-align: middle;
}

.nubol-custom-networks-table td.media-select-column.cell>div {
	display: flex;
	flex-direction: row;
}

.nubol-custom-networks-table td.media-select-column.cell>div input {
	flex-grow: 1;
}

.nubol-custom-networks-table td.media-select-column.cell>div button {
	flex-grow: 1;
	flex-shrink: 0;
}

.nubol-custom-networks-table input[type="text"],
.nubol-custom-networks-table input[type="url"] {
    width: 100%;
}

.nubol-custom-networks-table tbody tr:not(:last-child) td {
    border-bottom: 1px dotted #c3c4c7;
}

.nubol-builtin-label {
    font-weight: bold;
    color: #333;
    display: inline-block;
    padding: 4px 0;
}

.nubol-preview {
    display: block;
    border-radius: 4px;
}

.nubol-color-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.nubol-color-box {
	display: block;
	border: none;
	width: 32px;
	height: 32px;
	outline: none;
	padding: 0px;
	border-radius: 5px;	
	position: relative;
	overflow: hidden;
}

.nubol-tab-content .nubol-color-picker-native {
	position: absolute;
    width: 150%;
    height: 150%;
	top: 50%;
	left: 50%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
	transform: translate(-50%,-50%);
}

.nubol-tab-content[data-tab='enlaces']>table.form-table>tbody>tr>th:first-child {
	display: none;
}

.form-table td p.table-actions {
	margin: 5px 0px;
	display:flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
}