/* Wrapper */

.bbb-room-card {
    outline: 2px solid red !important;
}
/*
body {
    background: lime !important;
}
*/
.bbb-rooms-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, sans-serif;
}

/* Category block */
.bbb-category-block {
    margin-bottom: 50px;
}

/* Category title */
.bbb-category-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

/* Premium line */
.bbb-category-line {
    width: 60px;
    height: 3px;
    background: #0077cc;
    border-radius: 3px;
    margin-bottom: 25px;
}

/* Room card */
.bbb-room-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bbb-room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Room title */
.bbb-room-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

/* Join button */
.bbb-room-join-btn {
    display: inline-block;
    padding: 10px 16px;
    background: #0077cc;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

.bbb-room-join-btn:hover {
    background: #005fa3;
}

/* Inline join form */
.bbb-room-inline-form {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.bbb-form-row {
    margin-bottom: 10px;
}

.bbb-form-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #555;
}

.bbb-form-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.bbb-form-row-inline {
    margin-top: 6px;
}

.bbb-form-checkbox-label {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bbb-form-checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.bbb-form-actions {
    margin-top: 12px;
    text-align: right;
}

.bbb-recording-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px 12px;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    margin-bottom: 8px;
}

.bbb-room-card {
    position: relative;
}

.bbb-room-badge-recording {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.6);
}

/* =============================== */
/*   PREMIUM EMOJI + TITLE BLOCK   */
/* =============================== */

.bbb-room-title {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    gap: 8px;
}

.bbb-room-emoji {
    font-size: 1.6rem;
    line-height: 1;
    display: inline-block;
}

.bbb-room-title-text {
    display: inline-block;
    line-height: 1.2;
}

/* =============================== */
/*        INFO TEXT STYLING        */
/* =============================== */

.bbb-room-info-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.35;
    padding-left: 2px;
}

/* Optional subtle enhancement */
.bbb-room-card {
    padding-top: 10px;
}

/* Fix dark row background hiding text */
table.table.table-striped tbody tr {
    background-color: #fff !important;
    color: #000 !important;
}

/* Premium icon alignment for room titles */
.com-bbb-room h2 i,
.com-bbb-room h2 span {
    vertical-align: middle;
    line-height: 1;
}

/* Slightly larger emoji for visual balance */
.com-bbb-room h2 span {
    font-size: 1.4em;
}

/* Space between icon and title */
.com-bbb-room h2 i,
.com-bbb-room h2 span {
    margin-right: 0.35em;
}

/* Premium Compact Toolbar */
.bbb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.bbb-toolbar-left,
.bbb-toolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bbb-toolbar-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 180px;
}

/* Mobile */
@media (max-width: 768px) {
    .bbb-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .bbb-toolbar-left,
    .bbb-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .bbb-toolbar-input {
        flex: 1;
    }
}

/* Κουμπί Καρτέλες πάνω δεξιά */
.bbb-switcher-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
/* ΕΝΙΑΙΟ premium κουμπί εναλλαγής */
.bbb-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0d6efd !important;   /* Μπλε premium */
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
}

/* Hover */
.bbb-switcher:hover {
    background: #0b5ed7 !important;
    color: #fff !important;
}



/* Wrapper φίλτρων */
.bbb-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* 1η σειρά: προς το παρόν κενή ή με "Αίθουσες ανά σελίδα" όταν το βάλουμε */
.bbb-filters-row1 {
    display: flex;
    justify-content: flex-start;
}

/* 2η σειρά: Αναζήτηση + Κατηγορίες */
.bbb-filters-row2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Στυλ για input & select */
.bbb-filter-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 180px;
}

/* Mobile συμπεριφορά */
@media (max-width: 768px) {

    .bbb-filters-row2 {
        flex-direction: column;
        gap: 8px;
    }

    .bbb-filter-input {
        width: 100%;
    }
}

/* Wrapper φίλτρων λίστας */
.bbb-list-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* 1η σειρά: Αίθουσες ανά σελίδα */
.bbb-list-row1 {
    display: flex;
    justify-content: flex-start;
}

/* 2η σειρά: Αναζήτηση + Κατηγορίες */
.bbb-list-row2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Κοινό στυλ για input/select φίλτρων */
.bbb-filter-input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 180px;
}

/* Mobile συμπεριφορά */
@media (max-width: 768px) {

    .bbb-list-row2 {
        flex-direction: column;
        gap: 8px;
    }

    .bbb-filter-input {
        width: 100%;
    }
}

/* ✅ FIX εικόνας */
.bbb-room-image {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ✅ FIX στοίχιση τίτλου + icon */
.bbb-room-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbb-visual-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ✅ FIX status dot */
.bbb-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-left: 8px;
    display: inline-block;
}

.bbb-status-online { background: #5ecf5e; }
.bbb-status-wait   { background: #f4d06f; }
.bbb-status-offline{ background: #d0d4d9; }

/* ✅ FIX recording dot */
.bbb-rec-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #ff4d4d;
    border-radius: 50%;
    margin-left: 10px;
}

/* ✅ FIX inline form hidden */
.bbb-room-inline-form--hidden {
    display: none !important;
}

/* Πιο στενές καρτέλες */
.bbb-rooms-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

/* Ο τίτλος να σπάει σε γραμμές και η κάρτα να μεγαλώνει σε ύψος */
.bbb-room-title-text{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Αν ο τίτλος είναι μέσα σε flex γραμμή, επιτρέπουμε wrap */
.bbb-room-title{
  flex-wrap: wrap;
}

/* ✅ Parent categories */
.bbb-category-block {
    margin-bottom: 30px;
}

/* ✅ Subcategories indentation */
.bbb-subcategory {
    margin-left: 20px;
    margin-top: 10px;
}

/* ✅ Subcategory title smaller */
.bbb-subcategory h3 {
    font-size: 18px;
    color: #444;
}

/* ✅ Rooms more inside */
.bbb-subcategory .bbb-rooms-grid {
    margin-left: 10px;
}

/* ✅ grid spacing fix */
.bbb-rooms-grid {
    margin-top: 10px;
}

.bbb-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.bbb-tab-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #ddd;
  cursor: pointer;
  font-weight: 600;
}

.bbb-tab-btn.active {
  background: #0d6efd;
  color: #fff;
}

/* ✅ κρύβουμε όλες τις κατηγορίες */
.bbb-category-block {
  display: none;
}

/* ✅ δείχνουμε μόνο την ενεργή */
.bbb-category-block.active {
  display: block;
}

.bbb-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.bbb-tab-btn.active {
  background: #0d6efd;
  color: #fff;
}

.bbb-tab-content {
  display: none;
}

.bbb-tab-content.active {
  display: block;
}

/* ✅ CARD FLEX FIX */
.bbb-room-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ✅ Το περιεχόμενο να γεμίζει */
.bbb-room-title,
.bbb-room-info-text {
    flex-grow: 1;
}

/* ✅ Το footer (κουμπί + form) κάτω πάντα */
.bbb-room-actions {
    margin-top: auto;
}

.bbb-search-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 260px;
}

.bbb-search-wrapper input {
  width: 100%;
  padding-right: 32px;
}

.bbb-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #dc3545; /* κόκκινο */
  display: none;
  line-height: 1;
  user-select: none;
}

.bbb-search-clear:hover {
  color: #a71d2a;
}

/* === REAL FADE (3B) === */
/* όταν η κάρτα “κρύβεται”, πρώτα σβήνει (opacity), μετά αφαιρείται από τη ροή (display none από JS) */
.bbb-room-card {
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.bbb-room-card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================= */
/* 2ο ΕΠΙΠΕΔΟ: ΥΠΟΚΑΤΗΓΟΡΙΕΣ UX  */
/* ============================= */

/* Κοντύτερο spacing μέσα στο tab (να μη φαίνεται “σεντόνι”) */
.bbb-tab-content {
  padding-top: 6px;
}

/* Υποκατηγορία σαν “section card” */
.bbb-subcategory {
  margin-top: 14px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  background: #fafbfc;
}

/* Το header της υποκατηγορίας (h3) να φαίνεται ξεκάθαρα */
.bbb-subcategory > h3,
.bbb-tab-content > h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Μικρή “γραμμή”/σήμα για το section */
.bbb-subcategory > h3::before,
.bbb-tab-content > h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #0d6efd;
  display: inline-block;
}

/* Τα rooms της υποκατηγορίας να κάθονται λίγο πιο “μέσα” */
.bbb-subcategory .bbb-rooms-grid {
  margin-top: 8px;
}

/* Λίγο πιο compact grid μέσα σε υποκατηγορία (οπτική ισορροπία) */
.bbb-subcategory .bbb-rooms-grid {
  gap: 10px;
}

/* Αν υπάρχουν “_self” rooms χωρίς υποκατηγορία, να έχουν κι αυτά ένα διακριτικό section */
.bbb-tab-content > .bbb-rooms-grid {
  padding: 12px;
  border: 1px dashed rgba(13,110,253,0.35);
  border-radius: 10px;
  background: rgba(13,110,253,0.03);
  margin-top: 10px;
}

/* Προαιρετικό: να μη “κολλάει” το h3 με το προηγούμενο block */
.bbb-tab-content > h3 {
  margin-top: 12px;
}

/* ============================= */
/* Subcategories as horizontal chips (H3) */
/* ============================= */

/* Τα h3 μέσα στο tab να γίνουν οριζόντια “κουμπιά” */
.bbb-tab-content h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin: 0 8px 10px 0;     /* spacing μεταξύ chips */
  padding: 6px 12px;

  border-radius: 999px;
  background: #e9ecef;
  border: 1px solid rgba(0,0,0,0.08);

  font-size: 13px;
  font-weight: 700;
  color: #1f2937;

  cursor: pointer;
  user-select: none;
  line-height: 1.1;
}

/* Hover για να “λέει” ότι είναι clickable */
.bbb-tab-content h3:hover {
  background: #d7dde3;
}

/* Βγάζουμε οποιοδήποτε “underline/γραμμές” που είχες βάλει σε section mode */
.bbb-tab-content h3::before,
.bbb-tab-content h3::after {
  content: none !important;
}

/* Μικρή ανάσα πριν ξεκινήσει το grid των rooms κάτω από τα chips */
.bbb-tab-content .bbb-rooms-grid {
  margin-top: 8px;
}

/* ============================= */
/* SUBCATEGORY TABS (οριζόντια)  */
/* ============================= */

/* Κάνουμε τα h3 να στέκονται δίπλα */
.bbb-tab-content h3 {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 10px;

  padding: 6px 12px;
  border-radius: 20px;

  background: #e9ecef;
  border: 1px solid rgba(0,0,0,0.08);

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

/* hover */
.bbb-tab-content h3:hover {
  background: #d0d7de;
}

/* reset section layout */
.bbb-subcategory {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* ΜΕΓΑ ΣΗΜΑΝΤΙΚΟ */
.bbb-subcategory .bbb-rooms-grid {
  display: none;
  margin-top: 10px;
}

/* ενεργό tab (θα το βάλει το JS) */
.bbb-tab-content h3.active {
  background: #0d6efd;
  color: #fff;
}

/* ✅ τα h3 να είναι όλα μαζί σε γραμμή */
.bbb-tab-content h3 {
  display: inline-flex;
  margin-right: 8px;
}

/* ✅ force break μετά τα h3 */
.bbb-tab-content h3::after {
  content: "";
  display: block;
  width: 100%;
}

/* Context label (γονική / υποκατηγορία) */
.bbb-context {
  margin: 8px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.bbb-context-root {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(13,110,253,0.06);
  border: 1px solid rgba(13,110,253,0.18);
}

.bbb-context-sub {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25,135,84,0.08);
  border: 1px solid rgba(25,135,84,0.22);
  color: #146c43;
}