#profile-picture {
  display: flex;
  justify-content: center;
}

#profile-picture img.avatar {
  object-fit: cover;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

#profile-upload-holder {
  padding-top: 0.5em;
}

#profile-upload-holder input[type="file"] {
  display: none;
}

.progress-bar {
  background-color: var(--primary);
  width: 2px;
}

#progress-bar-message {
  color: var(--gray);
}

.add-loading-dots:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  40% {
    color: black;
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    text-shadow: .25em 0 0 black, .5em 0 0 rgba(0, 0, 0, 0);
  }

  80%, 100% {
    text-shadow: .25em 0 0 black, .5em 0 0 black;
  }
}

/* this makes the list items look nice on mobile */
.upgrade-features li {
  display: flex;
}

.upgrade-features li .pg-icon {
  margin-right: 0.5rem;
}

.upgrade-features li .upgrade-feature {
  width: 100%;
}

#subscription-details-table .subscription-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin: 0.5rem;
}

#subscription-details-table .subscription-detail .subscription-detail-label {
  width: 16rem;
  text-align: right;
  margin-right: 1rem;
}

#subscription-details-table .subscription-detail .subscription-detail-value {
  width: 100%;
}

#subscription-details-table .subscription-detail .subdetail {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

#plan-selector .plan {
  height: 100%; /* fill the whole column */
  /* prevent shifting when border is added */
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 1rem;
}

#plan-selector .plan.is-selected {
  border: 3px solid var(--primary);
}

#plan-selector .plan .plan-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#plan-selector .plan .price {
  font-size: 1.5rem;
}

/* alpine.js cloak support */
[x-cloak] {
  display: none !important;
}

/* ensure htmx links use pointers */
a[hx-get] {
  cursor: pointer;
}

.h-100 {
  height: 100%;
}

.muted-link {
  color: hsl(0, 0%, 71%);
}

.muted-link:hover {
  color: hsl(0, 0%, 48%);
  text-decoration: underline;
}

/* this is the default class assigned to errors by django forms */
.errorlist {
  color: var(--danger);
}

img.socialicon {
  padding-right: 0.5em;
  max-width: 24px;
  max-height: 24px;
}

/* css loader https://loading.io/css/ */
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid var(--primary);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

@charset "utf-8";

body{
    font-size:14px;
    font-weight:400;
    letter-spacing:0;
    line-height:1.28581;
    text-transform:none;
    color:#000;
    font-family:inherit;
  }

[data-theme="dark"] body,
.dark body {
  color: #e5e7eb;
}

a{
    color: inherit;
    text-decoration:none;
}
p {
    margin-top: 0;
    margin-bottom: 0;
}
form{
    display:inherit;
}
a:hover{
    color: inherit;
    cursor:pointer;
    text-decoration:none;
}

:focus {
    outline: none;
    outline-offset: 0;
    -moz-outline-radius: 0;
}

.editor-container {
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: inherit;
  }
  
  .editor-input {
    min-height: 150px;
    resize: vertical;
    font-size: 15px;
    caret-color: rgb(5, 5, 5);
    position: relative;
    tab-size: 1;
    outline: 0;
    padding: 15px 10px;
    caret-color: #444;
  }
  
  .editor-input:focus {
    outline: none;
  }
  
  /* Force all h1/h2/h3 inside editor-input to have correct styling */
  [contenteditable] h1.editor-heading-h1,
  h1.editor-heading-h1 {
    font-size: 24px !important;
    color: rgb(5, 5, 5) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
  }
  
  [contenteditable] h2.editor-heading-h2,
  h2.editor-heading-h2 {
    font-size: 20px !important;
    color: rgb(5, 5, 5) !important;
    font-weight: 700 !important;
    margin: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    display: block !important;
  }
  
  [contenteditable] h3.editor-heading-h3,
  h3.editor-heading-h3 {
    font-size: 18px !important;
    color: rgb(5, 5, 5) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    display: block !important;
  }
  
  .editor-placeholder {
    color: #999;
    overflow: hidden;
    position: absolute;
    text-overflow: ellipsis;
    top: 15px;
    left: 10px;
    font-size: 15px;
    user-select: none;
    display: inline-block;
    pointer-events: none;
  }
  
  .editor-paragraph {
    margin: 0;
    margin-bottom: 8px;
    position: relative;
  }
  
  .editor-paragraph:last-child {
    margin-bottom: 0;
  }
  
  /* Quote styles */
  [contenteditable] blockquote.editor-quote,
  blockquote.editor-quote {
    margin: 0 !important;
    margin-left: 20px !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    color: rgb(101, 103, 107) !important;
    border-left-color: rgb(206, 208, 212) !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
    padding-left: 16px !important;
    font-style: italic !important;
  }
  
  /* List styles */
  [contenteditable] ul.editor-ul,
  ul.editor-ul {
    margin: 0 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    padding-left: 20px !important;
    list-style-position: inside !important;
    list-style-type: disc !important;
  }
  
  [contenteditable] ol.editor-ol,
  ol.editor-ol {
    margin: 0 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    padding-left: 20px !important;
    list-style-position: inside !important;
    list-style-type: decimal !important;
  }
  
  [contenteditable] li.editor-listitem,
  li.editor-listitem {
    margin: 8px 0 !important;
  }
  
  /* Text formatting - these are applied via Lexical's text format system */
  .editor-text-bold {
    font-weight: bold;
  }
  
  .editor-text-italic {
    font-style: italic;
  }
  
  .editor-text-underline {
    text-decoration: underline;
  }
  
  .editor-text-strikethrough {
    text-decoration: line-through;
  }
  
  .editor-text-code {
    background-color: rgb(240, 242, 245);
    padding: 1px 0.25rem;
    font-family: Menlo, Consolas, Monaco, monospace;
    font-size: 94%;
  }
  
  .editor-link {
    color: rgb(33, 111, 219);
    text-decoration: none;
  }
  
  .editor-link:hover {
    text-decoration: underline;
    cursor: pointer;
  }
  
  .editor-tokenComment {
    color: slategray;
  }
  
  .editor-tokenPunctuation {
    color: #999;
  }
  
  .editor-tokenProperty {
    color: #905;
  }
  
  .editor-tokenSelector {
    color: #690;
  }
  
  .editor-tokenOperator {
    color: #9a6e3a;
  }
  
  .editor-tokenAttr {
    color: #07a;
  }
  
  .editor-tokenVariable {
    color: #e90;
  }
  
  .editor-tokenFunction {
    color: #dd4a68;
  }
  
  /* Link styling */
  a.editor-link {
    color: rgb(33, 111, 219) !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    position: relative;
    transition: all 0.2s ease;
  }
  
  a.editor-link:hover {
    text-decoration-thickness: 2px !important;
    text-decoration-color: rgb(33, 111, 219) !important;
    color: rgb(20, 90, 180) !important;
  }
  
  /* Make links in contenteditable actually clickable */
  [contenteditable] a.editor-link,
  .editor-input a.editor-link {
    pointer-events: auto !important;
  }

  /* Dark mode overrides */
  [data-theme="dark"] .editor-input,
  .dark .editor-input {
    caret-color: #e5e7eb;
    color: #e5e7eb;
  }

  [data-theme="dark"] [contenteditable] h1.editor-heading-h1,
  [data-theme="dark"] h1.editor-heading-h1,
  .dark [contenteditable] h1.editor-heading-h1,
  .dark h1.editor-heading-h1 {
    color: rgb(243, 244, 246) !important;
  }

  [data-theme="dark"] [contenteditable] h2.editor-heading-h2,
  [data-theme="dark"] h2.editor-heading-h2,
  .dark [contenteditable] h2.editor-heading-h2,
  .dark h2.editor-heading-h2 {
    color: rgb(229, 231, 235) !important;
  }

  [data-theme="dark"] [contenteditable] h3.editor-heading-h3,
  [data-theme="dark"] h3.editor-heading-h3,
  .dark [contenteditable] h3.editor-heading-h3,
  .dark h3.editor-heading-h3 {
    color: rgb(209, 213, 219) !important;
  }

  [data-theme="dark"] [contenteditable] blockquote.editor-quote,
  [data-theme="dark"] blockquote.editor-quote,
  .dark [contenteditable] blockquote.editor-quote,
  .dark blockquote.editor-quote {
    color: rgb(156, 163, 175) !important;
    border-left-color: rgb(75, 85, 99) !important;
  }

  [data-theme="dark"] .editor-text-code,
  .dark .editor-text-code {
    background-color: rgb(55, 65, 81);
    color: rgb(229, 231, 235);
  }


@charset "utf-8";

/* @import url("../javascript/react/components/landing_page/index.css"); */

.editor-width {
    @media all and (max-width: 767px) {
        width: 100% !important;
    }
}

.mobile-nav-overlay {
    @media all and (max-width: 767px) {
        display: block !important;
    }
}

/* side navigation */
.side-navigation-items > div{
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 10px;
    margin-bottom: 5px;
    margin-top: 7px;
}

.side-navigation-items > div> button {
    font-size: 11px;
    font-weight: 500;
}
/* end side navigation */

.shorts-thumbnail {
    object-fit: cover;
    border-radius: .5rem;
    width: 100%;
    height: 100%;
    transition: all .3s;
  }

  .shorts-play-overlay {
    background: #0000001a;
    border-radius: .5rem;
    justify-content: center;
    align-items: center;
    transition: all .3s;
    display: flex;
    position: absolute;
    inset: 0;
  }

  .shorts-play-overlay:hover {
    background: #0003;
  }

  .shorts-play-button {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    background: #0006;
    border-radius: 50%;
    padding: .5rem;
    transition: all .3s;
    transform: scale(.8);
  }

  .shorts-video-card:hover .shorts-play-button {
    opacity: 1;
    transform: scale(1);
  }

  .shorts-duration {
    color: #fff;
    background: #000000b3;
    border-radius: .25rem;
    padding: .125rem .375rem;
    font-size: .75rem;
    font-weight: 500;
    position: absolute;
    bottom: .5rem;
    right: .5rem;
  }

  .horizontal-scroll-smooth {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }

  .horizontal-scroll-smooth > * {
    scroll-snap-align: start;
  }

  .scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: var(--muted-foreground) transparent;
  }

  .scrollbar-thin::-webkit-scrollbar {
    background: none;
    height: 6px;
  }

  .scrollbar-thin::-webkit-scrollbar-track {
    background: none;
    border-radius: 3px;
  }

  .scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: var(--muted-foreground);
    opacity: .4;
    border-radius: 3px;
    transition: all .2s;
  }

  .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: var(--foreground);
    opacity: .6;
  }

  .scrollbar-auto-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .scrollbar-auto-hide::-webkit-scrollbar {
    height: 0;
    transition: height .2s;
  }

  .scrollbar-auto-hide:hover {
    scrollbar-width: thin;
  }

  .scrollbar-auto-hide:hover::-webkit-scrollbar {
    height: 6px;
  }

  .video-card-horizontal {
    min-width: 320px;
    transition: all .3s;
  }

  .video-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px #0000001a;
  }

  .dark .video-card-horizontal:hover {
    box-shadow: 0 8px 25px -8px #0000004d;
  }

  .shorts-video-card {
    aspect-ratio: 9 / 16;
    cursor: pointer;
    width: 128px;
    min-width: 128px;
    transition: all .3s;
  }

  .shorts-video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px -4px #00000026;
  }

  .dark .shorts-video-card:hover {
    box-shadow: 0 4px 12px -4px #0006;
  }

  .shorts-thumbnail {
    object-fit: cover;
    border-radius: .5rem;
    width: 100%;
    height: 100%;
    transition: all .3s;
  }

  .shorts-play-overlay {
    background: #0000001a;
    border-radius: .5rem;
    justify-content: center;
    align-items: center;
    transition: all .3s;
    display: flex;
    position: absolute;
    inset: 0;
  }

  .shorts-play-overlay:hover {
    background: #0003;
  }

  .shorts-play-button {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    background: #0006;
    border-radius: 50%;
    padding: .5rem;
    transition: all .3s;
    transform: scale(.8);
  }

  .shorts-video-card:hover .shorts-play-button {
    opacity: 1;
    transform: scale(1);
  }

  .shorts-duration {
    color: #fff;
    background: #000000b3;
    border-radius: .25rem;
    padding: .125rem .375rem;
    font-size: .75rem;
    font-weight: 500;
    position: absolute;
    bottom: .5rem;
    right: .5rem;
  }

  .line-clamp-1 {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .line-clamp-2 {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .line-clamp-3 {
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .floating-add-button {
    z-index: 50;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    transition: all .2s;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    box-shadow: 0 10px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  }

  .floating-add-button:hover {
    transform: translateY(-2px)scale(1.05);
    box-shadow: 0 20px 35px -5px #00000026, 0 10px 15px -6px #0000001a;
  }

  .floating-add-button:active {
    transform: translateY(0)scale(1);
  }

  .floating-add-button.pulse {
    animation: 2s ease-in-out infinite pulse-subtle;
  }

  @keyframes pulse-subtle {
    0%, 100% {
      opacity: 1;
    }

    50% {
      opacity: .8;
    }
  }

  .activity-card {
    background-color: var(--muted);
    border-color: var(--muted);
    transition: all .2s;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .activity-card {
      background-color: color-mix(in srgb, var(--muted) 30%, transparent);
    }
  }

  .activity-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px #0000001a;
  }

  .activity-item {
    background-color: var(--card);
    border-color: var(--muted);
    transition: all .2s;
  }

  @supports (color: color-mix(in lab, red, red)) {
    .activity-item {
      background-color: color-mix(in srgb, var(--card) 60%, transparent);
      border-color: color-mix(in srgb, var(--muted) 50%, transparent);
    }
  }

  .activity-item:hover {
    background-color: var(--muted);
    transform: translateX(2px);
  }

  @supports (color: color-mix(in lab, red, red)) {
    .activity-item:hover {
      background-color: color-mix(in srgb, var(--muted) 60%, transparent);
    }
  }

  /* Side Navigation */
  .side-navigation.collapsed .sidebar-link {
    justify-content: center;
    background: transparent;
  }
  .side-navigation.collapsed .sidebar-link-active {
    background-color: #fde68a; /* amber-200 - matches expanded mode */
  }
  .side-navigation.collapsed .sidebar-link-active .sidebar-icon {
    stroke: #111827; /* gray-900 - dark text on amber */
  }
  .side-navigation.collapsed .sidebar-icon {
    width: 18px;
    height: 18px;
  }
  /* Dark mode overrides for collapsed sidebar */
  [data-theme="dark"] .side-navigation.collapsed .sidebar-link,
  .dark .side-navigation.collapsed .sidebar-link {
    background: transparent;
  }
  /* Hover state for collapsed sidebar — explicit rule needed to beat the
     background:transparent rule above (specificity 0,3,0 > Tailwind's 0,2,0) */
  .side-navigation.collapsed .sidebar-link:hover {
    background-color: #fef9c3; /* yellow-100 */
  }
  [data-theme="dark"] .side-navigation.collapsed .sidebar-link:hover,
  .dark .side-navigation.collapsed .sidebar-link:hover {
    background-color: rgba(234, 179, 8, 0.2); /* yellow-400/20 */
  }
  [data-theme="dark"] .side-navigation.collapsed .sidebar-link-active,
  .dark .side-navigation.collapsed .sidebar-link-active {
    background: rgba(234, 179, 8, 0.3);
  }
  [data-theme="dark"] .side-navigation.collapsed .sidebar-link-active .sidebar-icon,
  .dark .side-navigation.collapsed .sidebar-link-active .sidebar-icon {
    stroke: rgba(255, 255, 255, 1);
  }
  [data-theme="dark"] .side-navigation.collapsed .sidebar-icon,
  .dark .side-navigation.collapsed .sidebar-icon {
    stroke: rgba(255, 255, 255, 0.85);
  }
  .side-navigation.collapsed .logo-link > svg{
    display: none;
  }

  /* Hide scrollbar on nav scrollable area so it doesn't create a right-side gap */
  .side-navigation .nav-scrollable {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .side-navigation .nav-scrollable::-webkit-scrollbar {
    display: none;
  }

  /* Smoother, rounder fonts for sidebar */
  .side-navigation {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
  }

  .sidebar-link {
    font-feature-settings: 'kern' 1;
    text-rendering: optimizeLegibility;
  }

  /* Publish page Calendar */
  .publish-calendar {
    border: none;
    box-shadow: none;
    font-size: 16px;
  }

  .publish-calendar .rdp-nav {
    display: flex;
    justify-content: space-between;
  }

  .publish-calendar .rdp-caption_label {
    padding: 8px 0;
    display: block;
  }

  .publish-calendar .rdp-month_grid {
    width: 100%;
  }

  .publish-calendar .rdp-day_button {
    width: 100%;
    padding: 8px;
  }

  .publish-calendar .rdp-weekdays {
    background: #eaeaea;
  }

  .publish-calendar .rdp-weekdays th {
    padding: 5px;
  }

  .publish-calendar .rdp-selected {
    background: orange;
    border-radius: 5px;
    color: #fff;
  }

  /* End Publish page Calendar */
