/* Widget Styling mimicking the app UI */
.input-container {
    display: flex;
    align-items: center;
}

.wx-textctrl {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 1px;
    width: 50px;
    height: 26px;
    margin-left: 5px;
}

.indented {
    padding-left: 20px;
    vertical-align: middle;
}

.shortcut {
    font-style: italic;
    width: 75px;
    vertical-align: middle;
}

.colorBox {
    width: 23px;
    height: 23px;
    border: 1px solid #ddd;
    vertical-align: middle;
    margin-left: 10px;
    display: inline-block;
}

.icon-container {
    display: flex;
    align-items: center;
    margin: 3px 0;
    line-height: 1.2;
    padding-left: 4px;
}

td>.icon-container {
    padding-left: 0;
}

.icon {
    flex-shrink: 0;
    margin-right: 10px;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #ddd;
}

.description {
    text-align: left;
    vertical-align: middle;
    line-height: 1.2;
    font-size: 0.95rem;
    color: #1f2937;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.static-box {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 0;
    padding-top: 10px;
    margin-top: 25px;
    width: 100%;
    margin-bottom: 20px;
}

.static-box-title {
    position: absolute;
    top: -11px;
    left: 10px;
    background-color: #fff;
    padding: 0 5px;
    font-weight: bold;
    font-size: 0.9em;
    color: #555;
    line-height: 1.2;
}

.content {
    padding: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    padding-left: 3px;
    padding-top: 8px;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox label {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 4px;
}

.custom-checkbox input:checked+label {
    background-color: #007bff;
}

.custom-checkbox input:checked+label:after {
    content: '\2713';
    color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-text {
    padding-top: 2px;
}

.dropdown-container {
    display: flex;
    align-items: center;
    margin: 0px;
    line-height: 1.2;
    gap: 6px;
}

.dropdown-label {
    margin-right: 10px;
}

.custom-dropdown {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
}

/* Visual "Fake" Slider for Scrollbars */
.slider-visual {
    width: 120px;
    height: 6px;
    background-color: #e5e7eb;
    /* Tailwind gray-200 */
    border-radius: 4px;
    position: relative;
    margin-right: 10px;
    /* Space from label or previous element */
    border: 1px solid #d1d5db;
    /* Tailwind gray-300 */
}

.slider-handle {
    width: 14px;
    height: 14px;
    background-color: #9ca3af;
    /* Tailwind gray-400 */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 20%;
    /* Arbitrary position to look "used" */
    transform: translateY(-50%);
    cursor: default;
    border: 1px solid #6b7280;
    /* Tailwind gray-500 */
}

.scroll-wrapper {
    display: flex;
    align-items: center;
}

.label {
    margin-right: 10px;
    white-space: nowrap;
}

.center-text {
    vertical-align: middle;
    line-height: 1.2;
}

.vertical-align-container {
    display: flex;
    align-items: center;
    height: 40px;
    margin-right: 5px;
}

.wx-button {
    background-color: #E5E5E5;
    border: 1px solid #AAA;
    border-radius: 0;
    cursor: pointer;
    outline: none;
    margin-right: 5px;
    text-align: center;
    height: 26px;
    padding: 0;
    min-width: 90px;
}

.colorPicker-container {
    display: flex;
    align-items: center;
    margin: 0px;
    vertical-align: middle;
}

/* Table resets */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: #1f2937;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

td {
    padding: 4px;
    vertical-align: top;
}

/* Mobile Responsiveness */
@media (max-width: 639px) {
    .indented {
        padding-left: 10px;
    }

    .shortcut {
        width: 60px;
        font-size: 0.8rem;
    }

    .description {
        font-size: 0.85rem;
    }

    .static-box .content {
        overflow-x: auto;
    }

    table {
        font-size: 0.85rem;
    }

    /* Allow tables to scroll if they get too wide */
    .w-full {
        overflow-x: auto;
        display: block;
    }
}