/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/**   {*/
/*    outline: 1px solid red !important;*/
/*}*/

.red {
    outline: 5px solid red !important;
}
.green {
    outline: 5px solid green !important;
}
.blue {
    outline: 5px solid blue !important;
} 

.placeholder {
  
  outline: 2px solid red;
  min-height: 140px;
  width: 100%;
  background: white;
  margin-bottom: 10px;
  
}

.object {
    border: 1px solid gray;
    margin-bottom: 5px;
    border-radius: 4px;
    padding: 15px;
}

.element {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e0e0e0;
}

.comment-actions-row {
  margin-left: 44px;
}

@media (max-width: 576px) {
  .element {
    padding: 12px;
    width: 98% !important;
  }
  .comment-actions-row {
    margin-left: 0 !important;
  }
}

.gray {
    background: lightgray;
}

.lightblue {
    background: aliceblue;
}



/*-----------------------------------------*/

.palpa_comment {
  
  background: #f8f7f5;
    padding: 16px;
    border: 1px solid #f1efeb;
    border-radius: 12px;
}

/*-----------------------------------------*/
/*move the trix toolbar to the bottom*/

.trix-bottom-toolbar {
  display: flex;
  flex-direction: column;
}

.trix-bottom-toolbar trix-toolbar {
  order: 2;         
  margin-top: 8px;  
}

/*remove trix buttons*/
trix-toolbar .trix-button--icon-bold,
trix-toolbar .trix-button--icon-strike,
trix-toolbar .trix-button--icon-number-list,
trix-toolbar .trix-button--icon-heading-1,
trix-toolbar .trix-button--icon-quote,
trix-toolbar .trix-button--icon-code,
trix-toolbar .trix-button--icon-attach,
trix-toolbar .trix-button--icon-decrease-nesting-level,
trix-toolbar .trix-button--icon-increase-nesting-level,
trix-toolbar .trix-button--icon-italic {
display: none !important;
}

.trix-button-group--history-tools {
    
display: none !important;
}

/*trix emoji picker --------*/

    /* Popover container for the emoji picker */
    .emoji-picker-popover {
      position: absolute;
      z-index: 9999;
      display: none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      border-radius: 8px;
      max-width: calc(100vw - 16px);
      overflow-x: hidden;
    }
    .emoji-picker-popover emoji-picker {
      max-width: 100%;
    }
    
    .emoji-picker-popover.active {
      display: block;
    }

    /* Style the custom Trix button so the text/emoji isn't hidden */
    .trix-button--emoji {
      font-size: 1.2rem;
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding-bottom: 2px;
    }
    
/*trix emoji picker - END-------*/

/*edit jst plus sing*/
  .ce-toolbar__plus {
      background-color: #0d6efd !important; /* Bootstrap Primary Blue */
      color: white !important;
      border-radius: 50% !important; /* Perfect circle */
      width: 38px !important;
      height: 38px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      box-shadow: 0 4px 6px rgba(13, 110, 253, 0.3) !important;
      transition: all 0.2s ease-in-out !important;
    }

    .ce-toolbar__plus:hover {
      background-color: #0b5ed7 !important; /* Darker blue on hover */
      transform: scale(1.15) !important; /* Grows slightly when hovered */
    }

    /* Ensure the actual plus icon inside turns white and is sized right */
    .ce-toolbar__plus svg {
      fill: white !important;
      width: 18px !important;
      height: 18px !important;
    }
    
    
    /*--------------------------*/
    
    .dropzone {
          border: 2px dashed rgb(144, 144, 144);
    border-radius: 10px;
    }
    
    .dropzone-msg-title, .dropzone-msg-desc {
      color: gray;
      font-size: 14px;
    }
    
    
    
    /*----start-------video-upload-field-bunny-sytle-------------*/
    
    .modern-video-upload { border: 2px dashed #ced4da; cursor: pointer; transition: all 0.2s ease-in-out; }
    .modern-video-upload:hover { background-color: #f8f9fa !important; border-color: #adb5bd; }
    
    /*-----------video-upload-field-bunny-sytle---------end----*/
    
    .poll-wrapper {
      background: white;
    }
    
    .pollSection {
      background: white;
      
    }
    
    /*----------videos-in-posts-and-comments-have-rounded-corners--------*/
    .rounded_videos iframe {
      border-radius: 10px;
    }
    
    
    
    .post_title {
      word-break: break-word;
    max-height: 30px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
  
  
  .app_pill_large {
    padding: 0.45rem 0.9rem;
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: 999px;
    transition: all 0.15s ease;
  }

  .category-pill-inactive {
    background-color: #ffffff !important;
    color: #4b5563 !important;
    border: 1px solid var(--bs-border-color);
  }

  .category-pill-inactive:hover {
    background-color: var(--bs-secondary) !important;
    color: #111111 !important;
    border-color: #d1d5db;
  }
  
  
  .app_lecture_box {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--bs-border-color);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  @media (max-width: 576px) {
    .app_lecture_box {
      padding: 1rem;
    }
  }
  
  /*------makding-blocks-in-editor-js-full-width--------*/

.editor_js_padding .ce-block__content,
.editor_js_padding .ce-toolbar__content {
  max-width: 90%;
}




.ce-block__content,
.ce-toolbar__content {
  max-width: 100%;
}



.codex-editor__redactor {
  padding-bottom: 50px !important; 
}



.notification.unread {
  background-color: #f8f9fa;
  font-weight: 500;
}

.navbar-user-dropdown {
  max-width: 340px;
  width: 100%;
  overflow-y: auto;
  max-height: 400px;
}

@media (min-width: 992px) {
  .navbar .w-lg-auto {
    width: auto !important;
  }
  .navbar-user-dropdown {
    min-width: 300px;
  }
}

.dropdown-menu {
  max-width: calc(100vw - 1.5rem);
  overflow-y: auto;
  max-height: 400px;
}

.notification-content {
  white-space: normal;
}

.notification-time {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}


/* Prevent Horizontal Scroll */
.notification-dropdown .dropdown-menu {
  min-width: 350px;
  max-width: 400px; /* Add max-width to prevent excessive width */
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Individual Notification - Fix Text Color & Overflow */
.notification {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease-in-out;
  position: relative;
  padding: 8px 16px; /* Ensure proper padding */
}

.notification:last-child {
  border-bottom: none;
}

/* Text Color Fixes - Make sure text is readable */
.notification .notification-body {
  color: #212529 !important; /* Dark gray for body text, not white! */
  font-size: 0.875rem;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Unread Notification Styling - Better contrast */
.notification.unread {
  background-color: #f8f9fa !important;
}

.notification.unread .notification-body {
  color: #0d6efd !important; /* Blue for unread, still readable */
  font-weight: 600;
}

/* Time text - ensure it's visible */
.notification-time, 
.notification small.text-muted {
  color: #6c757d !important; /* Darker gray, not too light */
  font-size: 0.7rem;
}

/* Hover State */
.notification:hover {
  background-color: rgba(13, 110, 253, 0.04);
}

/* Prevent text from overflowing container */
.flex-grow-1 {
  min-width: 0; /* Critical for flexbox overflow fix */
}

/* Icon sizing */
.notification .me-3 i {
  font-size: 1rem;
}

/* Badge Positioning - Fixed version */
.notification-badge-wrapper {
  display: inline-block;
  position: relative;
}

.badge-notification-count {
  font-size: 0.65rem !important;
  min-width: 18px !important;
  padding: 3px 5px !important;
  border-radius: 50% !important;
  background-color: #dc3545 !important; /* Bootstrap danger color */
}

/* Empty State */
.notification-dropdown .dropdown-item.text-center {
  padding: 2rem 1rem;
}




/* Only apply on screens ≥ 1200px */
@media (min-width: 1200px) {
  .app_max_widht {
    max-width: 1200px;
    margin: auto;
  }
}



.side_bar_info_section {
  background: #ffffff;
  border-radius: var(--bs-border-radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--bs-border-color);
}



/* 
   =========================================================
   SaaS BLUEPRINT OVERRIDE FOR BOOTSTRAP 5
   Theme: Modern Minimalist / Monochrome Flat
   =========================================================
*/

/* 1. Typography: Use 'Inter' to match the clean SaaS look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Base Typography */
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-font-size: 0.875rem; /* 14px base for denser SaaS layouts */
    --bs-body-color: #1a1a1a; /* Very dark gray, not harsh black */
    --bs-body-bg: #ffffff;

    /* Brand Colors Override (Monochrome focus) */
    --bs-primary: #111111; /* The "Invite Members" button color */
    --bs-primary-rgb: 17, 17, 17;
    --bs-secondary: #f3f4f6; /* Sidebar active states, subtle bgs */
    --bs-secondary-rgb: 243, 244, 246;
    
    --bs-light: #f9fafb; /* App background off-white */
    --bs-dark: #111111;  /* Dark block (storage warning) */

    /* Borders & Shapes */
    --bs-border-color: #e5e7eb; /* Very subtle light gray for cards/inputs */
    --bs-border-radius: 0.75rem; /* 12px default for buttons/inputs */
    --bs-border-radius-lg: 1rem; /* 16px for cards/folders */
    --bs-border-radius-sm: 0.5rem; /* 8px for smaller UI elements */
}

/* =========================================================
   COMPONENT OVERRIDES
   ========================================================= */

/* Keep UI components crisp and flat, while allowing modals/dropdowns subtle depth */
.btn, .card, .form-control, .form-select, .accordion-button, .badge, .alert {
    box-shadow: none !important; 
}

.dropdown-menu {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

/* Dropdown items: Bootstrap's :active state paints the item blue (#0d6efd) with
   white text, which flashes on press just before the page navigates. Hold the
   flat grey hover treatment through :focus/:active so the press stays subtle. */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active {
    color: var(--bs-body-color);
    background-color: var(--bs-secondary);
    text-decoration: none;
}

.modal-content {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius-lg) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

/* Top Navbar Navigation Links */
.navbar .navbar-nav .nav-link {
    color: #4b5563;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--bs-border-radius-sm);
    transition: all 0.15s ease;
}

.navbar .navbar-nav .nav-link:hover {
    color: #111111;
    background-color: var(--bs-secondary);
}

.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
    background-color: var(--bs-secondary);
    font-weight: 600;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border-radius: var(--bs-border-radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

/* Primary Button (Dark/Black) */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Secondary/Outline Button (Like "Create Folder") */
.btn-outline-secondary {
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
    background-color: transparent;
}
.btn-outline-secondary:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

/* Forms & Inputs */
.form-control, .form-select {
    border-color: var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: #ffffff;
}
.form-control::placeholder {
    color: #9ca3af;
}
.form-control:focus, .form-select:focus {
    border-color: #d1d5db;
    background-color: #ffffff;
    /* No glowing blue focus ring, just a slightly darker gray border */
    box-shadow: 0 0 0 1px #d1d5db !important; 
}

/* Cards & "Folders" */
.card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background-color: #ffffff;
}
.card-body {
    padding: 1.25rem;
}

/* Tables / File Lists */
.table {
    vertical-align: middle;
    color: var(--bs-body-color);
}
.table > :not(caption) > * > * {
    padding: 1rem 0.5rem;
    border-bottom-color: var(--bs-border-color);
}
/* Table Headers (Like "FILE NAME", "SHARED BY") */
.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280; /* Muted gray */
    font-weight: 600;
    border-bottom: none;
    background-color: #f9fafb; /* Slight bg for table header row */
}

/* Sidebar Navigation Items */
.nav-pills .nav-link {
    color: #4b5563; /* Medium gray */
    font-weight: 500;
    border-radius: var(--bs-border-radius-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-pills .nav-link.active, .nav-pills .nav-link:hover {
    background-color: var(--bs-secondary);
    color: var(--bs-primary);
}

/* Custom Element: Dark Storage Widget */
.bg-inverse {
    background-color: #111111;
    color: #ffffff;
    border-radius: var(--bs-border-radius-lg);
}
.bg-inverse .text-muted {
    color: #9ca3af !important;
}

/* Checkboxes */
.form-check-input {
    border-color: #d1d5db;
    border-radius: 4px;
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
}
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Badges / Small Info */
.text-xs {
    font-size: 0.75rem;
}

/* Ensure .text-secondary is a readable medium-dark gray despite --bs-secondary being light surface gray */
.text-secondary {
    color: #4b5563 !important;
}



/*fix emojis meny*/
/* 1. Update the Emoji Picker Container */
.emoji-picker-container {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: white;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  padding: 12px;
  z-index: 1050;
  
  /* ADD THESE LINES */
  width: max-content;      /* Ensures the container only grows as wide as the content */
  max-width: 300px;        /* Prevents it from becoming too wide on large screens */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); /* Makes it look like a real popup */
}

/* 2. Ensure the inner flex container wraps correctly */
.emoji-picker-container .d-flex {
  display: flex !important;
  flex-wrap: wrap !important; /* This is the most important line for horizontal layout */
  gap: 8px;                    /* Adds spacing between emojis */
  justify-content: flex-start; /* Aligns them to the left */
}


/* Breaks out of the parent app_max_widht constraint */
.full-page-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Template cards */
.template-card {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.template-card:hover {
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.template-preview {
  border: 1px solid #e5e7eb;
}

.template-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.template-status-published {
  background-color: #16a34a;
  color: #ffffff;
}

.template-status-unpublished {
  background-color: #6b7280;
  color: #ffffff;
}