/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.bbb-room-selection {
    display: inline-block;
    min-width: 10em;
    margin-bottom: 1em;
    background: #fff;
}

.bbb-error {
    color: #9e2c2c;
}

.bbb-table-container,
.bbb-table-container > div {
    box-sizing: border-box;
}
.bbb-table-container {
    width: auto;
    max-width: auto;
    margin: 20px auto;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #fafafa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.bbb-flex-table {
display: flex;
    width: 100%;
    margin: auto 0;
    transition: 0.5s;
    justify-content: space-around;
    flex-direction: row;
    align-content: center;
    flex-wrap: nowrap;
    align-items: stretch;
}

.flex-row {
    padding: 0.5em 0.5em;
    border-left: solid 1px #d9d9d9;
    border-bottom: solid 1px #d9d9d9;
    text-align: center;
}

.flex-row:last-child {
    border-right: solid 1px #d9d9d9;
}

.bbb-flex-table:nth-child(even) .flex-row {
    background: #f4f2f1;
}

.bbb-flex-table:first-of-type .flex-row,
.bbb-flex-table:first-of-type a .flex-row {
    border-color: #1565c0;
    color: #fff;
    background: #1976d2;
    text-decoration: none;
    flex-grow: 1;
    width: 100%;
}

.bbb-flex-table-3 {
    grid-template-columns: repeat(auto-fill, 33%);
}

.bbb-flex-table-4 {
    grid-template-columns: repeat(auto-fill, 25%);
}

.flex-row-5 {
    width: calc(100%);
}

.flex-row-6 {
    width: calc(100% / 6);
}

@media all and (max-width: 768px) {
    .bbb-flex-table {
        flex-flow: row wrap;
    }

    .flex-row {
        width: 100%;
    }

    .flex-row:first {
        width: 100%;
        border-bottom: solid 1px #d9d9d9;
    }

    .bbb-flex-table > .flex-row {
        border-bottom: solid 1px #d9d9d9;
    }

    .bbb-header > .flex-row {
        border-bottom: solid 1px;
    }
}

/* Media query for tablet and mobile */
@media (max-width: 768px) {
    #bbb-recordings-table .bbb-header {
        display: none;
    }
}

.bbb-recording-table-input {
    width: 100%;
}

.bbb-icon {
    color: #1976d2;
    cursor: pointer;
}

.bbb-header-icon {
    color: #fff;
    cursor: pointer;
}

.dashicon-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bbb-inline-block {
    display: inline-block;
}

.bbb-recording-link {
    max-width: 8em;
    margin: 0.2em 0.1em;
    padding: 0.4em;
    color: #fff;
    background-color: #007acc;
    cursor: pointer;
}

#joinroom .bbb-button, .bbb-button {
    margin: 20px;
    color: #fff;
    background-color: #007acc;
    padding: 0.7em 1em;
    border: none;
    border-radius: 8px; /* Slightly more rounded corners */
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    
    /* Enhanced transitions */
    transition: 
        background-color 0.3s ease, 
        transform 0.2s ease, 
        box-shadow 0.2s ease;
    
    /* More pronounced shadow for depth */
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    
    /* Smooth text shadow for slight depth */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    
    /* Prevent text selection */
    user-select: none;
    
    /* Modern button appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Optional: Add a subtle gradient for more dimension */
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0)
    );
}

#joinroom .bbb-button:hover, .bbb-button:hover {
    background-color: #005f99; /* Darker shade on hover */
    transform: translateY(-3px); /* More pronounced lift effect */
    
    /* Enhanced shadow on hover */
    box-shadow: 
        0 6px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

#joinroom .bbb-button:active, .bbb-button:active {
    transform: translateY(0); /* Reset lift effect on click */
    
    /* Compressed shadow for click effect */
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.1);
    
    /* Optional: slightly darker gradient on click */
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.1), 
        rgba(0, 0, 0, 0)
    );
}

/* Optional: Add ripple effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

#joinroom .bbb-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

#joinroom .bbb-button:active::after {
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: ripple 0.6s linear;
}

.bbb-recording-link:hover,
.bbb-recording-link:focus,
.bbb-recording-link:active,
.bbb-button:hover,
.bbb-button:focus,
.bbb-button:active {
    border-color: #006799;
    color: #fff;
}

.bbb-recording-link > a {
    color: #fff;
    box-shadow: none;
    text-decoration: none;
}

.bbb-recording-link > a:hover,
.bbb-recording-link > a:focus,
.bbb-recording-link > a:active,
.bbb-recording-link > a:visited {
    color: #fff;
}

.bbb-column-header-highlight {
    background: #52a8fd !important;
}

.bbb-hidden {
    visibility: hidden;
}

.single-bbb-room .bbb-room .entry-content {
    float: none !important;
    width: auto !important;
}

.bbb-expandable-header {
    display: inline-block;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 1.2em;
    font-weight: 400;
}

.bbb-recordings-display {
    cursor: pointer;
    margin-top: 10px;
}

[id^="bbb-recordings-list-"] {
    margin-bottom: 20px;
}

.bbb-recording-display-block {
    margin: 0.5em 0;
    border-top: groove;
    border-bottom: groove;
}

#joinroom .bbb-join-room-label, .bbb-join-room-label {
    display: inline-block;
    width: 140px;
}

#joinroom .bbb-join-room-input, .bbb-join-room-input {
    width: 310px;
}

.bbb-join-form-block {
    margin-bottom: 1em;
}

.bbb-form, .bbb-room-selection-block {
    text-align: center;
}
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}