/* Styles for individual tab buttons - now positioned individually */
.kt-tab-button {
    position: fixed; /* Each tab button will be fixed on the screen */
    left: 30px; /* Base horizontal position from the left edge */
    z-index: 9999; /* Ensure it's above other content */
    
    background: #f0f0f0; /* Light gray background, more neutral */
    color: #333; /* Darker text/icon for contrast */
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px;
    padding: 8px 12px; /* Slightly adjusted padding */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    font-size: 14px;
    font-weight: 500; /* Slightly lighter weight */
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-decoration: none; /* In case it renders as a link somehow */
    outline: none; /* Remove default focus outline */
}

.kt-tab-button:hover {
    background-color: #e0e0e0; /* Slightly darker on hover */
    color: #0073aa; /* WordPress blue for text/icon on hover */
    border-color: #999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Slightly more pronounced shadow */
}

.kt-tab-button:focus-visible {
    /* For accessibility, provide a clear focus indicator */
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Styles for the icon inside the button */
.kt-tab-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor; /* Use button's text color for stroke */
    fill: none; /* Ensure icons are outlines, not filled blobs */
    stroke-width: 2; /* Adjust stroke width if needed for better visibility */
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hide the text by default for icon-only tabs, show on hover or when active */
.kt-tab-button .kt-tab-button-text {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    white-space: nowrap;
    vertical-align: middle; /* Align text vertically with icon */
}

.kt-tab-button:hover .kt-tab-button-text,
.kt-tab-button.active .kt-tab-button-text {
    max-width: 150px; /* Allow text to expand */
    opacity: 1;
    margin-left: 4px; /* Small space after icon when text appears */
}

/* Styles for the active tab button */
.kt-tab-button.active {
    background-color: #0073aa; /* WordPress blue for active tab */
    color: #fff; /* White text/icon when active */
    border-color: #0073aa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: default; /* Indicate it's already active */
    transform: translateY(0); /* Remove lift effect when active */
}

/* Ensure active tab's icon is white */
.kt-tab-button.active svg {
    stroke: #fff;
}

/* Basic styling for tab content panels */
.kt-tab-panel-content {
    /* Initial state handled by JS, but ensure basic positioning */
    position: fixed;
    top: 30px; /* Example top position */
    left: 75px; /* Example left position (offset from tabs) */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9998; /* Below tabs */
    min-width: 280px; /* Ensure a minimum width for content */
    max-height: 80vh; /* Max height to prevent overflow */
    overflow-y: auto; /* Enable scrolling if content is too long */
    display: none; /* Hidden by default, managed by JS */
}