* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    /* background-color: rgba(161, 191, 224, 0.386) !important; */
    /* Prevents horizontal scrollbar if needed */
}

.panel {
    display: none;
    overflow: auto;
}

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid white;
    text-align: center;
    outline: none;
    font-size: 15px;
    transition: 0.6s;
    border-radius: 5px;
    /* overflow: auto; */
}

.accordion.active {
    background-color: #ccc;
    transition: 0.6s;
    /* writing-mode: sideways-lr; */
}

.side-accordion {
    writing-mode: sideways-rl;
    align-content: space-around;
}

.side-accordion.active {
    /* height: 100%; */
    transition: 0.6s;
}

.ha-100.active {
    height: 100%;
}

.accordion::after {
    content: " \25BD"
}

.accordion.active::after {
    content: ' \25B3';

}

.accordion::after:hover,
.accordion::after:focus,
.accordion::after:active {
    animation-name: hvr-bob-float, hvr-bob;
    animation-duration: .3s, 1.5s;
    animation-delay: 0s, .3s;
    animation-timing-function: ease-out, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards;
    animation-direction: normal, alternate;
}

/* --------------------UI Design------------------------------ */
.input-container {
    display: block;
    margin: 25px;

}

#tableViewer-mb {
    display: none;
}

.dev-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5px 0;
    height: 10%;
    color: white;

}

.container {
    display: flex;
    flex-direction: row;
    /* width: 100vw; */
    height: 85vh;
    justify-content: center;
    margin: 0;
    /* background-color: yellow; */

}

.sidebar-container {
    display: flex;
    flex-direction: column;
    opacity: 0.8;
    border-radius: 5px;
    word-wrap: break-word;
}

.sidebar {

    /* position: absolute;
            right: 0;*/
    width: 350px;
    /* height: 100%; */
    padding: 5px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 5px;
}

.instructions {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 10px;
    line-height: 1.5;
    color: #555;
}

.control-group {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.control-group h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-wrapper {
    background-color: rgba(233, 246, 247, 0.527);
    border-radius: 5px;
    height: 100%;
    flex-grow: 1;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: auto;
}

.button-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: space-between;
    min-width: 100%;
}

.panel-style {
    border: 1px solid lightgrey;
    border-radius: 8px;
    margin-top: 5px;
    padding: 20px;
    box-shadow: 5px 10px 8px lightgrey;
}

.style-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 8px 0;
}

.sp-class:hover {
    transition: all 300ms ease-in;
    border-color: aliceblue;
    transform: scale(1.1);
    opacity: 1;
}

.sp-class:active {
    background-color: lightblue;

}

.toolbar-container {
    display: flex;
    background-color: #f0f0f0;
    border-bottom: 1px solid #d0d0d0;
    padding: 5px;
    overflow-x: auto;
    white-space: nowrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    margin-right: 10px;
    border-right: 1px solid #d0d0d0;
    padding-right: 10px;
}

.toolbar-group:last-child {
    border-right: none;
}

/* .toolbar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0 2px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
} */

.toolbar-btn {
    /* background: rgba(79, 172, 254, 0.2); */
    background: rgb(79 172 254 / 62%);
    border: 1px solid rgba(79, 172, 254, 0.4);
    color: black;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-right: 5px;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.toolbar-btn i {
    font-size: 16px;
    color: #333;
}

.toolbar-btn.active {
    background-color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {

    #tableViewer-mb {
        display: block;
    }

    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar-container {
        display: none;
    }

    .toolbar-container {
        flex-direction: row;
    }

    /* .toolbar-group {
        border-right: none;
        border-bottom: 1px solid #d0d0d0;
        border-radius: 25px;
        background-color: #ffffff;
        ;
        color: white;
    } */

    /* .toolbar-btn {
        display: flex;
        flex-direction: column;
    }

    .toolbar-btn i {
        align-self: center;
    } */
    .toolbar-btn {
        /* background: rgba(79, 172, 254, 0.2); */
        background: rgb(79 172 254 / 62%);
        border: 1px solid rgba(79, 172, 254, 0.4);
        color: black;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        margin-right: 5px;
        white-space: nowrap;
    }
}