/* main-left.css - Mobile-Optimized Version */

/* Left Column: Join/Create Sections */
.collapsible-sections-container {
  flex: 0 0 100%; /* Full width on mobile */
  max-width: 100%; /* Full width on mobile */
  display: flex;
  flex-direction: column;
  height: auto; /* Auto height on mobile */
  min-height: 0;
  overflow-y: hidden; /* This container does NOT scroll, its children will */
  padding-right: 0;
  scrollbar-gutter: unset;
  background: var(--container-bg);
  border-radius: 0; /* No border-radius on mobile for full-width layout */
  box-shadow: none; /* No shadow on mobile */
  padding: 10px; /* Reduced padding for mobile */

  flex-grow: 1; /* Allow it to grow vertically within main-layout-container */
  flex-shrink: 1; /* Allow it to shrink */
  flex-basis: auto;
}

/* Desktop/Tablet styles for collapsible-sections-container */
@media (min-width: 768px) { /* md breakpoint */
    .collapsible-sections-container {
        flex: 0 0 500px; /* Increased fixed basis on desktop to fit content without scroll */
        max-width: 500px; /* Increased max width on desktop */
        height: 100%; /* Fill height in row on desktop */
        padding-right: 0; /* No padding here, inner sections will scroll */
        scrollbar-gutter: stable;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        padding: 16px;
        flex-grow: 0; /* Prevent excessive growth */
        flex-shrink: 0; /* Prevent excessive shrinking */
        overflow-y: hidden; /* Ensure no scrollbar on the container itself */
    }
}

.premium-badge { /* This badge was removed from HTML, so this rule is obsolete now */
  background-color: var(--text-dark);
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 12px;
}

/* Common Section Styles (for both join and create) */
.content-section-join,
.content-section-create {
  background-color: var(--container-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-light);
  box-sizing: border-box;
  flex-shrink: 0;

  opacity: 0;
  pointer-events: none;
  z-index: 1;

  /* NEW: Use max-height for smooth transition in both collapsed and expanded states */
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease; /* Ensure padding transitions */

  flex-grow: 1;
  display: flex; /* Keep display flex by default, control visibility via max-height/opacity */
  flex-direction: column;
  height: auto; /* Height will be controlled by content and max-height */
  overflow: hidden; /* Hide content when collapsed */
  padding: 0 var(--fluid-spacing-md); /* Zero padding when collapsed */
  min-height: 0;
}

/* Update the .collapsed class as per your suggestion */
.content-section-join.collapsed,
.content-section-create.collapsed {
    max-height: 0; /* Hides content and allows transition */
    opacity: 0; /* Fades out */
    overflow: hidden; /* Ensures content doesn't spill out */
    padding: 0 var(--fluid-spacing-md); /* Zero padding when collapsed */
    /* REMOVED: display: none !important; from here as it interferes with transitions */
}


/* Update the .expanded class as per your suggestion */
.content-section-join.expanded,
.content-section-create.expanded {
    display: flex; /* Ensure it's flex when expanded */
    max-height: 1000px; /* Sufficiently large to show all content */
    opacity: 1; /* Fully visible */
    pointer-events: auto; /* Allow interaction */
    z-index: 2;
    overflow-y: auto; /* Allow internal scroll if content overflows */
    padding: var(--fluid-spacing-md); /* Set desired padding when expanded */
}


/* Common input/label styles within this container */
.user-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
}

.user-input-group label {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-weight: 600;
  display: block;
}

.user-input-group .input-field {
  width: 100%;
  padding: var(--fluid-input-padding-y) var(--fluid-input-padding-x);
  font-size: var(--fluid-input-font-size);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--inner-shadow);
  background-color: var(--container-bg);
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.user-input-group .input-field:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
  background-color: var(--container-bg);
}

.user-input-group .input-hint {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 3px;
  display: block;
  opacity: 0.9;
}

/* Generic button styles within this container */
button {
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: #0c8ec4;
  box-shadow: 0 44px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--sidebar-bg);
  color: var(--text-dark);
  border: 1px solid var(--sidebar-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  background: var(--sidebar-border);
  color: var(--text-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Divider (visual only) */
.divider {
  border: none;
  border-top: 1px solid var(--sidebar-border);
  margin: 10px 0;
  width: 100%;
}


/* ──────────────────────────────────────────────────────────────────────────
   JOIN MEETING SECTION SPECIFIC
────────────────────────────────────────────────────────────────────────── */
.join-content-container {
  display: flex;
  flex-direction: column;
  gap: var(--fluid-spacing-sm);
  width: 100%;
  flex: 1;
  min-height: 0;
  position: relative;
  padding-bottom: 0;
}

/* Upgraded Join Space ID Input */
.join-space-wrapper.upgraded {
  background: var(--container-bg);
  padding: 15px; /* Adjusted padding for mobile */
  border-radius: 12px; /* Adjusted border-radius for mobile */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06); /* Adjusted shadow for mobile */
  max-width: 100%; /* Full width on mobile */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Adjusted gap for mobile */
}

/* Desktop/Tablet styles for join-space-wrapper.upgraded */
@media (min-width: 768px) {
    .join-space-wrapper.upgraded {
        padding: 24px;
        border-radius: 16px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
        max-width: 560px;
        gap: 12px;
    }
}


/* Headings within join-space-wrapper.upgraded */
.join-space-wrapper.upgraded h3 {
    font-size: 1.2rem; /* Adjusted font size for mobile */
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-dark);
}
@media (min-width: 768px) {
    .join-space-wrapper.upgraded h3 {
        font-size: 1.5rem;
    }
}

.join-space-wrapper.upgraded small {
    font-size: 0.8rem; /* Adjusted font size for mobile */
    color: var(--text-light);
    margin-bottom: 8px; /* Adjusted margin for mobile */
    display: block;
}
@media (min-width: 768px) {
    .join-space-wrapper.upgraded small {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon input {
  width: 100%;
  padding: 10px 40px 10px 12px; /* Adjusted padding for mobile */
  font-size: 0.9rem; /* Adjusted font size for mobile */
  border-radius: 10px; /* Adjusted border-radius for mobile */
  border: 1px solid var(--sidebar-border);
  background: var(--container-bg);
  transition: box-shadow 0.3s ease;
  color: var(--text-dark);
}
@media (min-width: 768px) {
    .input-with-icon input {
        padding: 14px 48px 14px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
}

.input-with-icon input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
  background: var(--container-bg);
}

.arrow-fab {
  position: absolute;
  top: 50%;
  right: 8px; /* Adjusted position for mobile */
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px; /* Adjusted size for mobile */
  height: 30px; /* Adjusted size for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem; /* Adjusted font size for mobile */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); /* Adjusted shadow for mobile */
  cursor: pointer;
  transition: background 0.3s ease;
}
@media (min-width: 768px) {
    .arrow-fab {
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

.arrow-fab:hover {
  background: #0c8ec4;
}

.floating-label {
  font-size: 0.8rem; /* Adjusted font size for mobile */
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px; /* Adjusted margin for mobile */
  display: inline-block;
}
@media (min-width: 768px) {
    .floating-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
}

.join-space-section input,
.join-space-section button {
  font-size: 0.9rem; /* Adjusted font size for mobile */
  padding: 8px 12px; /* Adjusted padding for mobile */
  border-radius: 6px; /* Adjusted border-radius for mobile */
  border: 1px solid var(--sidebar-border);
  width: 100%;
}
@media (min-width: 768px) {
    .join-space-section input,
    .join-space-section button {
        font-size: 1rem;
        padding: 10px 14px;
        border-radius: 8px;
    }
}

.join-space-section button {
  background-color: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.join-space-section button:hover {
  background-color: #0c8ec4;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.input-card-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--fluid-spacing-sm);
  background: var(--sidebar-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--inner-shadow);
  padding: 10px; /* Adjusted padding for mobile */
}
@media (min-width: 768px) {
    .input-card-group {
        padding: 12px;
    }
}

.join-form {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-message {
  width: 100%;
  margin-top: 8px; /* Adjusted margin for mobile */
  padding: 6px; /* Adjusted padding for mobile */
  text-align: center;
  font-size: 0.8rem; /* Adjusted font size for mobile */
  color: var(--text-dark);
  background-color: var(--sidebar-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
@media (min-width: 768px) {
    .status-message {
        margin-top: 10px;
        padding: 8px;
        font-size: 0.9rem;
    }
}

.status-message.visible {
  opacity: 1;
}

/* Error status message style */
.status-message.error {
  background-color: #fee2e2;
  border-color: var(--danger);
  color: var(--danger);
}

/* Success status message style */
.status-message.success {
  background-color: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}

/* Invited Participants List */
.participants-list {
  list-style: none;
  padding: 0;
  margin: 6px 0; /* Adjusted margin for mobile */
  overflow-y: hidden;
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  background-color: var(--container-bg);
  padding: 4px;
  font-size: 0.8rem; /* Adjusted font size for mobile */
  color: var(--text-dark);
  box-shadow: var(--inner-shadow);

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0px;
  line-height: 1.4em;
  max-height: calc(1.4em * 2 + 8px); /* Max height for 2 rows + some padding */
  overflow: hidden;
  align-items: baseline;
}
@media (min-width: 768px) {
    .participants-list {
        margin: 8px 0;
        font-size: 0.88rem;
    }
}

.participants-list li {
  padding: 0px 4px;
  border-bottom: none;
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.participants-list li:not(:last-child)::after {
    content: ", ";
    color: var(--text-light);
}

.participants-list li:last-child {
  border-bottom: none;
}

.participants-list li.empty-list-message {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  padding: 8px; /* Adjusted padding for mobile */
  min-height: auto;
  width: 100%;
  display: block;
}
@media (min-width: 768px) {
    .participants-list li.empty-list-message {
        padding: 10px;
    }
}

.participants-list .participant-status {
  font-size: 0.7em;
  color: var(--text-light);
  margin-left: 4px;
}

.btn-small { /* This button style is likely obsolete in current HTML */
  padding: 5px 10px;
  font-size: 0.8rem;
  margin-top: 8px;
}

/* Image in Join Module */
.join-ad-image-container {
  width: 100%;
  height: 100px; /* Adjusted height for mobile */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  z-index: 10;
  background-color: var(--text-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1); /* Adjusted shadow for mobile */
  margin-top: auto;
  position: relative;
  flex-shrink: 0;
}
@media (min-width: 768px) {
    .join-ad-image-container {
        height: 120px;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    }
}

.join-ad-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(1.5) contrast(1.2);
  opacity: 0.6;
}

.know-more-btn {
  position: absolute;
  top: 8px; /* Adjusted position for mobile */
  right: 8px; /* Adjusted position for mobile */
  font-size: 0.7rem; /* Adjusted font size for mobile */
  padding: 5px 10px; /* Adjusted padding for mobile */
  background-color: var(--accent);
  color: white;
  border-radius: 6px; /* Adjusted border-radius for mobile */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Adjusted shadow for mobile */
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
@media (min-width: 768px) {
    .know-more-btn {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 6px 12px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
}

.know-more-btn:hover {
  background-color: #0c8ec4;
  transform: translateY(-1px);
}


/* ──────────────────────────────────────────────────────────────────────────
   CREATE MEETING SECTION SPECIFIC - Fixed Top/Bottom, Scrollable Middle
────────────────────────────────────────────────────────────────────────── */
/* The main section.content-section-create will now manage its three primary children:
   - favorite-templates-row (fixed top)
   - create-middle-scroll-container (scrollable content)
   - create-footer-fixed-actions (fixed bottom)
*/
#createSpaceSection.expanded {
    height: auto;
    overflow-y: hidden;
    padding-right: 0;
    scrollbar-gutter: unset;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    gap: 10px; /* Adjusted gap for mobile */
}
@media (min-width: 768px) {
    #createSpaceSection.expanded {
        gap: 15px;
    }
}

/* NEW: Style for the middle scrollable content area within createSpaceSection */
.create-middle-scroll-container {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Adjusted gap for mobile */
    min-height: 0;

    scrollbar-width: thin;
    scrollbar-color: var(--sidebar-border) transparent;
}
@media (min-width: 768px) {
    .create-middle-scroll-container {
        gap: 10px;
    }
}

/* Webkit specific scrollbar for .create-middle-scroll-container */
.create-middle-scroll-container::-webkit-scrollbar {
  width: 8px;
}
.create-middle-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}
.create-middle-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--sidebar-border);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}


/* NEW: Style for the fixed footer row (Create Now + Schedule Later) */
.create-static-actions-row {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: stretch; /* Stretch items to fill width */
    gap: 10px; /* Adjusted gap for mobile */
    flex-shrink: 0;
    padding-top: 10px; /* Adjusted padding for mobile */
    border-top: 1px solid var(--sidebar-border);
    background-color: var(--container-bg);
    z-index: 2;
}
@media (min-width: 768px) {
    .create-static-actions-row {
        flex-direction: row; /* Back to horizontal on desktop */
        align-items: center;
        gap: 10px;
        padding-top: 15px;
    }
}

/* Adjust action-buttons to be a flex item within create-footer-fixed-actions */
.action-buttons {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

/* Adjust statusDivCreate to not have default margins that might push things */
#statusDivCreate {
    margin-top: 0;
}

/* New wrapper for collapsable items */
.compact-create-section {
    background-color: var(--container-bg);
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow-light);
    overflow: hidden;
    margin-bottom: 0;
    flex-shrink: 0;
    flex-grow: 0;

    display: flex;
    flex-direction: column;
    width: 100%;

    /* Collapsed state by default */
    max-height: 40px; /* Reduced collapsed height for mobile */
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 768px) {
    .compact-create-section {
        max-height: 45px;
    }
}

.compact-create-section.collapsed {
    max-height: 40px; /* Reduced collapsed height for mobile */
}
@media (min-width: 768px) {
    .compact-create-section.collapsed {
        max-height: 45px;
    }
}

.compact-create-section.expanded {
    max-height: 500px; /* Large enough to show content, adjust as needed */
    opacity: 1;
    overflow: hidden;
    flex-grow: 1;
}

.compact-create-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px; /* Reduced padding for mobile */
    cursor: pointer;
    background-color: var(--sidebar-bg);
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s, border-bottom-color 0.2s;
}
@media (min-width: 768px) {
    .compact-create-section-header {
        padding: 8px 15px;
    }
}

/* Specific styling for the Schedule for Later header */
#scheduleLaterSection .compact-create-section-header {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
    border-color: var(--accent);
    flex-grow: 1;
}

#scheduleLaterSection .compact-create-section-header:hover {
    background-color: #0c8ec4;
    border-color: #0c8ec4;
}

#scheduleLaterSection .compact-create-section-header i {
    color: white;
}


.compact-create-section.expanded .compact-create-section-header {
    border-bottom-color: var(--sidebar-border);
}

.compact-create-section-header:hover {
    background-color: var(--sidebar-border);
}

.compact-create-section-header h4 {
    margin: 0;
    font-size: 0.9rem; /* Adjusted font size for mobile */
}
@media (min-width: 768px) {
    .compact-create-section-header h4 {
        font-size: 1rem;
    }
}

.compact-create-section-header i {
    transition: transform 0.3s ease;
}

/* Corrected icons for collapsed/expanded state */
.compact-create-section.collapsed .compact-create-section-header i {
    transform: rotate(0deg);
}
.compact-create-section.expanded .compact-create-section-header i {
    transform: rotate(180deg);
}


.compact-create-section-content {
    padding: 8px; /* Reduced padding for mobile */
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Adjusted gap for mobile */
    flex-grow: 1;
}
@media (min-width: 768px) {
    .compact-create-section-content {
        padding: 10px;
        gap: 10px;
    }
}

.compact-create-section.expanded .compact-create-section-content {
    max-height: 400px; /* Large enough to show content, adjust as needed */
    opacity: 1;
    overflow: hidden;
    flex-grow: 1;
}

/* "Favorite Templates" row */
.favorite-templates-row {
  display: flex;
  justify-content: flex-start; /* Align to start on mobile, allowing scroll */
  align-items: center;
  gap: 8px; /* Adjusted gap for mobile */
  padding: 8px 0; /* Adjusted padding for mobile */
  margin-bottom: 8px; /* Adjusted margin-bottom for mobile */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}
@media (min-width: 768px) {
    .favorite-templates-row {
        justify-content: space-around;
        gap: 10px;
        padding: 10px 0;
        margin-bottom: 10px;
    }
}

.favorite-templates-row::-webkit-scrollbar {
  display: none;
}

.favorite-template-btn {
  flex-shrink: 0;
  width: 90px; /* Adjusted width for mobile */
  height: 30px; /* Adjusted height for mobile */
  padding: 4px 5px; /* Adjusted padding for mobile */
  font-size: 0.75rem; /* Adjusted font size for mobile */
  background-color: var(--container-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
@media (min-width: 768px) {
    .favorite-template-btn {
        width: 100px;
        height: 35px;
        padding: 5px 6px;
        font-size: 0.8rem;
    }
}

.favorite-template-btn:hover {
  background: var(--sidebar-border);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.favorite-template-btn.active-favorite {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: subtlePulse 0.3s ease-out;
}

/* Adjustments for templates-grid */
.templates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px; /* Adjusted gap for mobile */
  width: 100%;
  overflow-y: hidden;
  height: auto;
}
@media (min-width: 768px) {
    .templates-grid {
        gap: 8px;
    }
}

.template-btn {
  position: relative;
  flex-shrink: 0;
  width: 90px; /* Adjusted width for mobile */
  height: 30px; /* Adjusted height for mobile */
  padding: 4px 5px; /* Adjusted padding for mobile */
  font-size: 0.75rem; /* Adjusted font size for mobile */
  background-color: var(--container-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-dark);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
@media (min-width: 768px) {
    .template-btn {
        width: 100px;
        height: 35px;
        padding: 5px 6px;
        font-size: 0.8rem;
    }
}

.template-btn:hover {
  background: var(--sidebar-border);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.template-btn[aria-pressed="true"] {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: subtlePulse 0.3s ease-out;
}

.template-btn[aria-pressed="true"] i {
  color: white;
}

/* Tooltip styles for template buttons */
.template-btn::before,
.template-btn::after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.template-btn::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: var(--text-dark);
  color: white;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-size: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.template-btn::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--text-dark);
}

.template-btn:hover::before,
.template-btn:hover::after {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Agenda list - no internal scroll */
.agenda-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: hidden;
  flex-grow: 1;
  min-height: 50px; /* Adjusted min-height for mobile */
  background-color: var(--container-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: var(--inner-shadow);
}
@media (min-width: 768px) {
    .agenda-list {
        min-height: 60px;
    }
}

/* Remove scrollbar-gutter from collapsible-content for no-scroll design */
.collapsible-content {
    scrollbar-gutter: unset;
}

/* Schedule section - now part of compact-create-section */
/* REMOVED .schedule-section-hidden style as it's now managed by .compact-create-section */

/* Avatar shape selection (existing style) */
.avatar-shape-selection {
  width: 100%;
  margin-top: 10px; /* Adjusted margin for mobile */
  padding-top: 10px; /* Adjusted padding for mobile */
  border-top: 1px solid var(--sidebar-border);
}
@media (min-width: 768px) {
    .avatar-shape-selection {
        margin-top: 12px;
        padding-top: 12px;
    }
}

.avatar-shape-selection h4 {
  text-align: left;
  margin-bottom: 6px; /* Adjusted margin for mobile */
  font-size: 0.9rem; /* Adjusted font size for mobile */
  color: var(--text-dark);
}
@media (min-width: 768px) {
    .avatar-shape-selection h4 {
        font-size: 1rem;
    }
}

.avatar-shape-selection .form-group {
  display: flex;
  justify-content: flex-start;
  gap: 10px; /* Adjusted gap for mobile */
  margin-bottom: 0;
}
@media (min-width: 768px) {
    .avatar-shape-selection .form-group {
        gap: 15px;
    }
}

.avatar-shape-selection input[type="radio"] {
  display: none;
}

.avatar-shape-selection input[type="radio"]+label {
  padding: 6px 10px; /* Adjusted padding for mobile */
  background-color: var(--container-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem; /* Adjusted font size for mobile */
  font-weight: 500;
  color: var(--text-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
@media (min-width: 768px) {
    .avatar-shape-selection input[type="radio"]+label {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
}

.avatar-shape-selection input[type="radio"]:checked+label {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.avatar-shape-selection input[type="radio"]:hover+label {
  background-color: var(--sidebar-border);
}
