/* =============================================
   FLOATING SIDE TABS - FRONTEND
   ============================================= */

#fsdt-main-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
    font-family: "Manrope", Arial, sans-serif;
}

/* Tab wrapper */
.fsdt-tab-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 10px;
}

/* Vertical handle */
.fsdt-handle {
    background: #32323a;
    color: #ffffff;
    padding: 18px 10px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    z-index: 100;
    user-select: none;
}

.fsdt-handle:hover {
    background: #44444c;
}

/* Panel (hidden by default) - Centered by default for middle tabs */
.fsdt-panel {
    display: none;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 8px;
    z-index: 90;
    color: #111;
}

/* First tab: Align to top of handle */
.fsdt-tab-item:first-child .fsdt-panel {
    top: 0;
    transform: none;
}

/* Last tab: Align to bottom of handle */
.fsdt-tab-item:last-child .fsdt-panel {
    top: auto;
    bottom: 0;
    transform: none;
}

/* Show panel when active */
.fsdt-tab-item.active .fsdt-panel {
    display: block;
}

/* Panel header */
.fsdt-header {
    background: #f9f9f9;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.fsdt-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.fsdt-close {
    cursor: pointer;
    font-size: 24px;
    color: #aaa;
    line-height: 1;
}

.fsdt-close:hover {
    color: #000;
}

/* Panel body */
.fsdt-body {
    padding: 15px 20px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Menu list */
.fsdt-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fsdt-menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.fsdt-menu-list li:last-child {
    border-bottom: none;
}

.fsdt-menu-list li a {
    display: block;
    padding: 10px 5px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
}

.fsdt-menu-list li a:hover {
    color: #0073aa;
    padding-left: 10px;
}


/* =============================================
   ADMIN STYLES
   ============================================= */

.fsdt-admin-wrap .fsdt-menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.fsdt-admin-wrap .fsdt-menu-row input {
    flex: 1;
}

.fsdt-admin-wrap .fsdt-menu-row .fsdt-remove-row {
    color: #a00;
    flex: 0 0 auto;
}

.fsdt-admin-wrap .fsdt-edit-form {
    max-width: 700px;
}
