*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
  background: var(--background-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.btn {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
  /* transition: all 0.3s ease; */
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
  );
  transition: 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: rgba(196, 27, 255, 0.2);
  color: var(--text-primary);
  border: 1px solid rgba(196, 27, 255, 0.4);
  /* transition: all 0.3s ease; */
}

.btn-primary:hover {
  background: rgba(196, 27, 255, 0.3);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(196, 27, 255, 0.2);
}

.btn-secondary {
  border-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(160 160 160 / var(--tw-border-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.btn-secondary:hover {
  background-color: rgb(160 160 160 / 0.1);
}

.nav-item {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  background: transparent;
  border: none;
  outline: none;
}

.nav-item:hover {
  color: var(--text-primary);
  background: transparent;
  border: none;
}

.nav-item.active {
  color: var(--accent-primary);
  background: transparent;
  border: none;
}

.fixed {
  position: fixed;
}

.bottom-0 {
  bottom: 0px;
}

.left-0 {
  left: 0px;
}

.right-0 {
  right: 0px;
}

.top-0 {
  top: 0px;
}

.z-50 {
  z-index: 50;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-16 {
  margin-top: 4rem;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-8 {
  height: 2rem;
}

.w-8 {
  width: 2rem;
}

/* .max-w-6xl {
  max-width: 72rem;
} */

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.cursor-pointer {
  cursor: pointer;
}

.resize {
  resize: both;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-6 {
  gap: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}

.bg-dark {
  --tw-bg-opacity: 1;
  background-color: rgb(26 27 31 / var(--tw-bg-opacity, 1));
}

.bg-dark-light {
  --tw-bg-opacity: 1;
  background-color: rgb(42 43 48 / var(--tw-bg-opacity, 1));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
  --tw-gradient-from: #00f2ea var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 242 234 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-secondary {
  --tw-gradient-to: #ff3b5c var(--tw-gradient-to-position);
}

.bg-clip-text {
  -webkit-background-clip: text;
          background-clip: text;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.font-sans {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.text-text-primary {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-transparent {
  color: transparent;
}

:root {
    /* Core Colors */
    --background-primary: #13111C;
    --background-secondary: #1E1B2C;
    --accent-primary: #C41BFF;
    --accent-secondary: #2B1867;
    --accent-tertiary: #3affe6;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-glow: linear-gradient(180deg, rgba(110, 58, 255, 0.1), rgba(255, 58, 140, 0.1));
    
    /* Shadows & Effects */
    --glow-primary: 0 0 20px rgba(110, 58, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(255, 58, 140, 0.3);
    --shadow-elevation: 0 8px 24px rgba(0, 0, 0, 0.2);
    --glass-background: rgba(20, 17, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 10px rgba(196, 27, 255, 0.5);
}

/* Layout */
.content-wrapper {
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    background: 
        radial-gradient(circle at 0% 0%, rgba(196, 27, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 24, 103, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #13111C 0%, #1E1B2C 100%);
}

.creator-page {
    height: calc(100vh - 60px);
    margin-top: 60px;
    display: flex;
    background: 
        radial-gradient(circle at 0% 0%, rgba(196, 27, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 24, 103, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #13111C 0%, #1E1B2C 100%);
}

.sidebar {
    width: 320px;
    background: rgba(19, 17, 28, 0.5);;
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
}

.content-area {
    flex: 1;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    height: calc(100vh - var(--nav-height) - 3rem);
    overflow-y: auto;
    min-height: 400px;
}

.videos-sidebar {
    width: 95px; /* Reducido de 280px a aproximadamente la tercera parte */
    background: rgba(19, 17, 28, 0.2);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--glass-border);
    padding: 0.5rem; /* Reducido el padding para aprovechar mejor el espacio */
    height: 100%;
    overflow-y: auto;
}

/* Ajustes específicos para elementos dentro de videos-sidebar reducida */
.videos-sidebar .audio-item {
    margin-bottom: 0.25rem;
}

.videos-sidebar .audio-player-container {
    padding: 0.25rem;
    min-width: 0; /* Permitir que se comprima */
}

.videos-sidebar .audio-item-header {
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}

.videos-sidebar .audio-item-title {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: normal; /* Permitir que el texto se envuelva */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.videos-sidebar .audio-item-date {
    font-size: 0.6rem;
    margin-left: 0;
}

.videos-sidebar .audio-player-controls {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.videos-sidebar .audio-play-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.videos-sidebar .audio-download-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.videos-sidebar .audio-progress {
    min-width: 30px;
    flex: 1;
}

.videos-sidebar .audio-item-details {
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.6rem;
    margin-top: 0.25rem;
}

.videos-sidebar .audio-item-details span {
    margin-right: 0;
    text-align: center;
}

/* Ajustes para elementos de error y pendiente */
.videos-sidebar .audio-item.error .audio-error-container,
.videos-sidebar .audio-item.pending .audio-pending-container {
    padding: 0.25rem;
    text-align: center;
}

.videos-sidebar .audio-item.error .error-message {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.6rem;
}

.videos-sidebar .audio-item.pending .loading-spinner {
    width: 1rem;
    height: 1rem;
    margin: 0.25rem 0;
}

.videos-sidebar .audio-item.pending p {
    font-size: 0.6rem;
}

.videos-sidebar .no-audios-message {
    padding: 1rem 0.25rem;
    font-size: 0.7rem;
}

.videos-sidebar .no-audios-message i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Estilos para un área de vista previa responsiva */
.preview-area {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.responsive-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.responsive-preview .preview-placeholder,
.responsive-preview img,
.responsive-preview video {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Ajustes responsivos para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .preview-area {
        max-width: 100%;
        margin: 0 auto;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 768px) {
    .sidebar,
    .videos-sidebar {
        position: static;
        height: auto;
        transform: none;
        transition: none;
        padding: 1.5rem;
    }
    
    .modal-overlay {
        display: none;
    }
}

.generation-modes {
    display: flex;
    gap: 0.5rem;
    /* margin-bottom: 1.5rem; */
}

.mode-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-align: center;
    background-color: var(--background-light);
    color: var(--text-secondary);
    white-space: nowrap;
}

.mode-btn.active {
    background-color: rgba(0, 242, 234, 0.1);
    color: var(--primary-color);
}

.mode-btn:not(.disabled):hover {
    transform: translateY(-1px);
    background-color: rgba(219, 3, 175, 0.07);
}

.mode-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

@media (max-width: 768px) {
    .generation-modes {
        /* overflow-x: auto; */
        /* padding-bottom: 0.5rem; */
        margin-bottom: 0px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .generation-modes::-webkit-scrollbar {
        display: none;
    }
    
    .mode-btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Upload Area */
.uploaded-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.uploaded-image {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    transition: transform 0.3s ease;
}

.uploaded-image-container:hover .uploaded-image {
    transform: scale(1.05);
}

.image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uploaded-image-container:hover .image-actions {
    opacity: 1;
}

.action-btn {
    background: var(--background-light);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.download-btn:hover {
    background: var(--primary-color);
}

.remove-btn:hover {
    background: var(--error-color);
}

.upload-area {
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border: 2px dashed var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--background-light);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(242, 0, 227, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
}

.upload-area p {
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

.history-link {
    color: var(--primary-color);
    text-decoration: none;
}

.history-link:hover {
    text-decoration: underline;
}

/* Settings Panel */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-panel h3 {
    font-size: 1.125rem;
    font-weight: 500;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    color: var(--text-secondary);
}

.mode-toggle,
.duration-toggle, .voicegender-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.ratio-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.toggle-btn,
.ratio-btn {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--text-secondary);
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover,
.ratio-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.toggle-btn.active,
.ratio-btn.active {
    background-color: rgba(0, 242, 234, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Generate Button */
.generate-btn {
    /* margin-top: auto; */
    width: 100%;
    /* background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); */
    color: var(--dark-color);
    font-weight: 500;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 24px 24px !important;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.credits {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Videos Sidebar */
.videos-header {
    /* padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expand-btn {
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.expand-btn:hover {
    color: var(--text-primary);
}

.videos-list {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    width: 100%;
    height: 150px;
    /* aspect-ratio: 9/16; */
    background-color: var(--dark-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.video-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  filter: blur(8px);
  transform: scale(1.1);
  opacity: 0.8;
}
.video-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.video-thumbnail img {
    width: 100%;
    /* height: 100%; */
    height: 100%;
    object-fit: scale-down;
    position: relative;
    z-index: 1;
}



.video-duration,
.video-number {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.video-duration {
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 5;
}

.video-number {
    top: 0.5rem;
    left: 0.5rem;
    z-index: 6;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
}

@media (max-width: 768px) {
    .creator-page {
        position: relative;
        overflow: hidden;
    }
    
    .sidebar,
    .videos-sidebar {
        position: fixed;
        top: 2.9em; /* Modificado para dejar espacio para la barra de navegación */
        height: calc(100vh - 2.9em); /* Ajustado para mantener la altura correcta */
        width: 100%;
        max-width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 30;
    }
    
    /* Corregir la clase para el estado abierto */
    .sidebar.open,
    .videos-sidebar.open {
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: 2.9em !important;
        padding-top: 60px !important; /* Espacio para el botón de cierre */
    }

    .auth-links {
        display: none !important;
    }

    .content-area {
        height: calc(100vh - 60px);
        padding-bottom: 5rem;
    }

    /* Eliminar clase show que no se utiliza */
    .sidebar .settings-panel,
    .videos-sidebar .videos-list {
        margin-bottom: 1rem;
    }

    .sidebar .generate-btn {
        margin-top: 1rem;
        margin-bottom: 4rem;
    }

    /* Ocultar videos-header en modo responsive */
    .videos-header {
        display: none !important;
    }

    .mobile-controls {
        display: flex;
        position: fixed;
        bottom: 5rem;
        right: 1rem;
        z-index: 1000;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-btn {
        width: 3rem;
        height: 3rem;
        border-radius: 50%;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        color: var(--background-dark);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease;
    }
    
    /* Añadir estilo para botón activo */
    .mobile-btn.active {
        transform: scale(1.05);
        box-shadow: 0 0 10px 2px rgba(var(--primary-color-rgb), 0.5);
    }

    .mobile-btn:hover {
        transform: scale(1.05);
    }

    .mobile-btn:active {
        transform: scale(0.95);
    }

    .image-actions {
        opacity: 1;
        background: none;
        justify-content: flex-end;
        padding: 0.5rem;
        align-items: flex-start;
    }

    .action-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
        background: rgba(0, 0, 0, 0.7);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Authentication Pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 2rem;
    background: 
        radial-gradient(circle at 0% 0%, rgba(196, 27, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 24, 103, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #13111C 0%, #1E1B2C 100%);
}

.auth-box {
    background: rgba(19, 17, 28, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--glass-shadow);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(196, 27, 255, 0.2);
    background: rgba(30, 30, 45, 0.6);
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(25, 25, 40, 0.5);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Reset any conflicting styles */
input {
    border: 1px solid var(--text-secondary);
    margin: 0;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    overflow: visible;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    /* border-radius: 12px; */
    font-weight: 500;
    text-align: center;
    /* transition: all 0.3s ease; */
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--secondary-color);
}

.separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background-color: rgba(255, 59, 92, 0.1);
    color: #ff3b5c;
    border: 1px solid rgba(255, 59, 92, 0.2);
}

.alert-error ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alert-error li {
    margin-bottom: 0.25rem;
}

.alert-error li:last-child {
    margin-bottom: 0;
}

/* Form validation styles */
.form-group input.error {
    border-color: var(--secondary-color);
}

.form-error {
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments for auth pages */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem;
    }

    .auth-box h1 {
        font-size: 1.5rem;
    }
}

.image-preview-wrapper {
    position: relative;
    margin: 1rem 0;
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: rgba(255, 59, 92, 0.9);
    transform: scale(1.1);
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--text-secondary);
}

.error-message {
    background-color: rgba(255, 59, 92, 0.1);
    color: var(--error-color);
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.prompt-section {
    /* margin: 1.5rem 0; */
    margin-top: 20px;
}

.prompt-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prompt-section label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.prompt-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.prompt-input-number {
    width: 100%;
    padding: 1rem;
    /* border-radius: 12px; */
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
  }

.prompt-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
    background: rgba(30, 30, 45, 0.6);
}

.prompt-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.prompt-help {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Layout */
.app-container {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 0% 0%, rgba(196, 27, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 24, 103, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #13111C 0%, #1E1B2C 100%);
    color: var(--text-primary);
    width: 100%;
}

.creator-page .main-content {
    max-width: 100%;
    /* margin: 4rem 0 0 0; */
    padding: 0;
}

.generation-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.generation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.generation-status img {
    height: 7rem;
    width: auto;
    object-fit: contain;
}

.generation-status i {
    color: var(--primary-color);
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.video-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-container video {
    width: 100%;
    max-height: 70vh;
    border-radius: var(--border-radius);
    background-color: var(--background-light);
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.video-controls .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(255, 59, 92, 0.1);
    border-radius: var(--border-radius);
    color: var(--error-color);
}

.error-message i {
    font-size: 1.25rem;
}

.prompt-wrapper {
    position: relative;
    background: var(--glass-background);
    backdrop-filter: blur(12px);
    /* border: 1px solid var(--glass-border); */
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.prompt-section .prompt-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.prompt-section .prompt-btn:hover {
    color: var(--text-primary);
    background: var(--glass-background);
    box-shadow: var(--glow-primary);
}

.prompt-section .prompt-enhance {
    top: 12px;
    right: 12px;
}

.prompt-section .prompt-clear {
    bottom: 12px;
    right: 12px;
}

@media (max-width: 768px) {
    .prompt-section .prompt-btn {
        width: 32px;
        height: 32px;
    }
}

.video-loading {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 20, 0.8);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.video-loading span {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-primary); }
    50% { box-shadow: 0 0 20px var(--accent-primary); }
    100% { box-shadow: 0 0 5px var(--accent-primary); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .prompt-section .prompt-btn {
        width: 32px;
        height: 32px;
    }
    
    /* .prompt-wrapper {
        margin: 16px;
    } */
    
    .videos-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Quantum Background Effect */
.quantum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(196, 27, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(43, 24, 103, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #13111C 0%, #1E1B2C 100%);
    z-index: -1;
    pointer-events: none;
}

/* Glass Card Effect */
.glass-card {
    /* background: rgba(19, 17, 28, 0.4); */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(196, 27, 255, 0.2);
}

/* Prompt input styles */
.prompt-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.prompt-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
    background: rgba(30, 30, 45, 0.6);
}

input, textarea {
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(var(--accent-primary-rgb), 0.2);
    background: rgba(30, 30, 45, 0.6);
}

/* Videos list with glass effect */
.videos-list {
    background: var(--glass-background);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    gap: 16px;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

/* Video loading animation */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-primary); }
    50% { box-shadow: 0 0 20px var(--accent-primary); }
    100% { box-shadow: 0 0 5px var(--accent-primary); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .videos-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Asegurarse de que los estilos no sean sobrescritos */
.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(20, 20, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-box input[type="text"]:focus,
.auth-box input[type="email"]:focus,
.auth-box input[type="password"]:focus {
    outline: none;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(196, 27, 255, 0.2);
    background: rgba(30, 30, 45, 0.6);
}

.auth-box input[type="text"]:hover,
.auth-box input[type="email"]:hover,
.auth-box input[type="password"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(25, 25, 40, 0.5);
}

.btn.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn.glass-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(196, 27, 255, 0.2);
}

@media (max-width: 768px) {
    a.btn.glass-card[href="/auth/login"] {
        display: none !important;
    }
}

/* .fa-brain {  display: inline-block !important;
  font: normal normal normal 14px/1 'Font Awesome 6 Free' !important;
  font-size: inherit !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  
  position: relative;
  animation: brainPulse 2s ease-in-out infinite;
} */

/* Efecto de brillo */
.fa-brain::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent,
      rgba(196, 27, 255, 0.3),
      transparent
  );
  z-index: -1;
  animation: brainShine 3s linear infinite;
}

@keyframes brainShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes brainPulse {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(196, 27, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(196, 27, 255, 0.8));
  }
}

.fa-brain {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-1px);
    vertical-align: baseline;
    line-height: inherit;
    line-height: 0.3 !important;
    margin-left: 20px !important;
}

.fa-brain::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 27, 255, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
}

.text-sm.text-text-secondary.ml-2 {
    margin-left: -18px !important;
    position: relative;
    z-index: 1;
}

/* Premium Selector Styles */
.premium-selector {
    position: relative;
    width: 100%;
    padding-top: 20px;
    /* margin-bottom: 20px; */
    z-index: 1000;
}

.premium-selector-btn {
    display: flex;
    align-items: center;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease;
}

.premium-selector-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(
        to right,
        rgba(139, 92, 246, 0.1),
        rgba(217, 70, 239, 0.1),
        rgba(34, 211, 238, 0.1)
    );
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #d946ef;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.selector-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.selector-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.selector-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.selector-icon {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    transition: transform 300ms ease;
}

.premium-selector.open .selector-icon {
    transform: rotate(180deg);
}

.premium-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 300ms ease;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.premium-selector.open .premium-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.premium-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 300ms ease;
    position: relative;
}

.premium-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.premium-option.active {
    background: rgba(196, 27, 255, 0.1);
}

.option-indicator {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.option-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.option-indicator i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.option-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.option-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Gradient styles for option dots */
.premium-option[data-gradient="violet-to-purple"] .option-dot {
    background: linear-gradient(to right, #8b5cf6, #a855f7);
}

.premium-option[data-gradient="blue-to-cyan"] .option-dot {
    background: linear-gradient(to right, #3b82f6, #22d3ee);
}

.premium-option[data-gradient="fuchsia-to-pink"] .option-dot {
    background: linear-gradient(to right, #d946ef, #ec4899);
}

.premium-option[data-gradient="green-to-teal"] .option-dot {
    background: linear-gradient(to right, #22c55e, #14b8a6);
}

.premium-option[data-gradient="orange-to-yellow"] .option-dot {
    background: linear-gradient(to right, #f97316, #eab308);
}

.premium-option[data-gradient="indigo-to-violet"] .option-dot {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(217, 70, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(217, 70, 239, 0);
    }
}

.premium-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.premium-option.disabled:hover {
    background: transparent !important;
    transform: none !important;
}

.coming-soon-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.premium-option.disabled .option-indicator,
.premium-option.disabled .option-content {
    pointer-events: none;
}

/* Contenedores de modos */
.mode-container {
    width: 100%;
    transition: all 0.3s ease;
}

/* Estilos específicos para cada modo */
#text-to-video-container .prompt-section {
    margin-bottom: 1.5rem;
}

#text-to-speech-container .voice-selector,
#text-to-speech-container .language-selector,
#text-to-speech-container .speed-selector {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

#lip-sync-container .input-type-toggle {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

#video-to-video-container .enhancement-toggle,
#video-to-video-container .intensity-toggle {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

#train-model-container .model-type-toggle,
#train-model-container .privacy-toggle {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

#train-model-container .text-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(25, 25, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#train-model-container .text-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
}

.multiple-upload {
    position: relative;
    cursor: pointer;
}

.multiple-upload::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f0c5';
}

/* Estilo para botones de toggle */
.style-toggle {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

/* Input de texto independiente */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Futuristic Text to Speech Styles 2030 */
.tts-premium-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* padding: 20px; */
    max-width: 800px;
    /* margin: 0 auto; */
    position: relative;
}

.voice-dropdown-container {
    position: relative;
    z-index: 10;
}

.voice-dropdown-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(10, 4, 20, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.voice-dropdown-button:hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

/* .voice-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
 */
.voice-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    flex: 1;
    margin-left: 12px;
  }

.quantum-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(to right, #7c3aed, #2563eb);
    position: relative;
}

.quantum-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.2);
    animation: pulse 2s infinite;
}

.voice-text h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    text-align: left;
}

.voice-text p {
    font-size: 12px;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.voice-options-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 4, 20, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 10px;
    backdrop-filter: blur(10px);
    transform-origin: top center;
    transform: scaleY(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-height: 400px; /* Altura máxima para el panel */
    overflow-y: auto; /* Permite scroll vertical */
    overflow-x: hidden; /* Evita scroll horizontal */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: rgba(124, 58, 237, 0.5) rgba(10, 4, 20, 0.2); /* Para Firefox */
}

/* Estilo personalizado para el scrollbar (navegadores webkit como Chrome) */
.voice-options-panel::-webkit-scrollbar {
    width: 8px;
}

.voice-options-panel::-webkit-scrollbar-track {
    background: rgba(10, 4, 20, 0.2);
    border-radius: 4px;
}

.voice-options-panel::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.5);
    border-radius: 4px;
}

.voice-options-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.7);
}

.voice-options-panel.active {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: all;
}

.voice-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-option:hover {
    background: rgba(124, 58, 237, 0.1);
}

.voice-option-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.voice-option-text h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.voice-option-text p {
    font-size: 12px;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.tts-input-container {
    width: 100%;
    min-height: 180px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tts-input-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tts-input-container:hover::before {
    opacity: 1;
}

.tts-input {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: transparent;
    border: none;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    resize: none;
}

.tts-input:focus {
    outline: none;
}

.tts-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.waveform-container {
    width: 100%;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 4, 20, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.waveform-visualization {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.waveform-bar {
    width: 2px;
    height: 3px;
    background: rgba(124, 58, 237, 0.5);
    border-radius: 1px;
}

.tts-action-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.generate-voice-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.generate-voice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(37, 99, 235, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generate-voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.generate-voice-btn:hover::before {
    opacity: 1;
}

.generate-voice-btn.loading {
    background: linear-gradient(135deg, #6d34d2, #2159d4);
    pointer-events: none;
}

.generate-voice-btn.loading i {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Nuevo para audio preview */
.audio-player-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(10, 4, 20, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.audio-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.audio-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #7c3aed, #2563eb);
    width: 0;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.audio-download-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.audio-download-btn:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: scale(1.05);
}

.audio-download-btn i {
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* .tts-premium-container {
        padding: 15px 10px;
    } */
    
    .tts-input {
        min-height: 150px;
        font-size: 15px;
    }
    
    .generate-voice-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Floating particles in the TTS container */
.tts-premium-container .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.3);
    pointer-events: none;
    opacity: 0;
    animation: float-particle 15s linear infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y));
    }
}

/* Animación para las barras de onda de audio */
@keyframes pulse {
    0% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Estilos específicos para las barras de onda */
.waveform-bar {
    display: inline-block;
    width: 2px;
    height: 20px;
    margin: 0 1px;
    background: rgba(124, 58, 237, 0.5);
    border-radius: 1px;
    transition: height 0.2s ease;
} 

/* Estilos adicionales para el área de vista previa */
.preview-area .video-container,
.preview-area .image-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-area .preview-video,
.preview-area .preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.preview-area .video-controls {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.preview-area .download-btn {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.preview-area .download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.preview-area .processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.preview-area .processing .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-left-color: #3b82f6;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Asegurar que el área de vista previa tenga altura mínima para móviles */
@media (max-width: 768px) {
    .preview-area {
        min-height: 300px;
    }
}

/* Botón para cerrar sidebar en vista móvil */
.sidebar .close-sidebar-btn.mobile-only,
.videos-sidebar .close-sidebar-btn.mobile-only,
.images-sidebar .close-sidebar-btn.mobile-only {
    position: absolute;
    top: 15px; /* Ajustado ligeramente para que aparezca después del padding-top */
    left: 10px; 
    z-index: 35;
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 50% !important;
    background: var(--gradient-glow) !important;
    color: var(--background-dark) !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.2s ease !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    text-align: center !important;
    display: none;
}

.sidebar.open .close-sidebar-btn.mobile-only,
.videos-sidebar.open .close-sidebar-btn.mobile-only,
.images-sidebar.open .close-sidebar-btn.mobile-only {
    display: flex !important;
}

.sidebar .close-sidebar-btn.mobile-only:hover,
.videos-sidebar .close-sidebar-btn.mobile-only:hover,
.images-sidebar .close-sidebar-btn.mobile-only:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px 2px rgba(var(--primary-color-rgb), 0.5);
    background: var(--gradient-glow) !important;
}

.sidebar .close-sidebar-btn.mobile-only:active,
.videos-sidebar .close-sidebar-btn.mobile-only:active,
.images-sidebar .close-sidebar-btn.mobile-only:active {
    transform: scale(0.95) !important;
}

.sidebar .close-sidebar-btn.mobile-only i,
.videos-sidebar .close-sidebar-btn.mobile-only i ,
.images-sidebar .close-sidebar-btn.mobile-only i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Solo mostrar en móvil */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }
    
    .mode-container {
        position: relative;
        padding-top: 50px; /* Reducido ligeramente ya que el sidebar ya comienza más abajo */
        padding-left: 15px;
        padding-right: 15px;
    }
}

.tts-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px; /* Añade espacio entre los elementos hijos */
}

/* .tts-container .setting-group {
    padding: 12px 0;
} */

.tts-premium-container {
    padding-top: 10px;
}

/* Estilos para el reproductor de onda de audio */
.waveform-visualization {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background-color: #141429;
    border-radius: 6px;
    padding: 0 5px;
    overflow: hidden;
}

/* Contenedor que asegura que las barras queden detrás del botón */
.wave-bars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

/* Estilo para las barras individuales */
.waveform-bar {
    width: 2px;
    margin-left: 1px;
    display: inline-block;
    background: rgba(138, 43, 226, 0.5);
    transition: height 0.2s ease;
}
#generateVideo {
    margin-top: 20px;
}
.waveform-bar.animated {
    animation: pulse 1.5s infinite;
}

/* Botón de reproducción que aparece encima del visualizador */
.wave-play-button {
    position: absolute;
    z-index: 20; /* Valor alto para asegurar que esté encima de todo */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(124, 58, 237, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    transition: all 0.2s ease;
}

.wave-play-button:hover {
    background-color: rgba(124, 58, 237, 1);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.7);
    transform: translate(-50%, -50%) scale(1.1); /* Efecto de agrandamiento al pasar el mouse */
}

/* Fix para asegurar que el botón esté encima */
.waveform-container {
    position: relative;
}

/* Estilos para el reproductor de audio con visualización de ondas */
.waveform-container {
    position: relative;
    /* margin: 15px 0; */
    width: 100%;
    min-height: 40px;
}

.waveform-visualization {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background-color: #141429;
    border-radius: 6px;
    padding: 0 5px;
    overflow: hidden;
}

.wave-bars-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 30px;
    z-index: 1;
}

.waveform-bar {
    width: 2px;
    margin-left: 1px;
    display: inline-block;
    transition: height 0.2s ease;
}

.waveform-bar.animated {
    animation: waveform-pulse 1.5s ease-in-out infinite alternate;
}

.wave-play-button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 20;
    transition: background-color 0.2s ease;
}

.wave-play-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hidden-audio-element {
    display: none;
}

@keyframes waveform-pulse {
    0% {
        height: 15%;
        opacity: 0.3;
    }
    50% {
        height: 40%;
        opacity: 0.8;
    }
    100% {
        height: 15%;
        opacity: 0.3;
    }
}

/* Override para el botón de reproducción del audio dentro del sidebar */
.sidebar .wave-play-button,
.sidebar button.wave-play-button {
    width: auto;
    padding: 0;
    text-align: center;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 20;
    transition: background-color 0.2s ease;
}

.sidebar .wave-play-button:hover,
.sidebar button.wave-play-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%); /* Mantener la posición vertical y prevenir el translateY(-1px) del sidebar button */
}

/* Posición centrada para el botón de reproducción principal */
.waveform-visualization .wave-play-button {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(124, 58, 237, 0.8);
    width: 36px;
    height: 36px;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.waveform-visualization .wave-play-button:hover {
    background-color: rgba(124, 58, 237, 1);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

.waveform-container {
    position: relative;
    width: 100%;
    height: 80px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.generated-audio-container {
    position: relative;
    width: 100%;
    /* margin: 15px 0; */
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.05);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.generated-waveform-visualization {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    overflow: hidden;
}

/* Estilos para barras de la visualización generada */
.generated-waveform-visualization .wave-bars-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
}

.generated-waveform-visualization .waveform-bar {
    width: 3px;
    height: 30%;
    background: rgba(124, 58, 237, 0.6);
    border-radius: 4px;
    transition: height 0.2s ease;
}

.generated-waveform-visualization .waveform-bar.animated {
    animation: waveform-pulse 1s infinite;
}

.videos-list,
.audio-list,
.images-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

/* Contenido dentro de los sidebars */
.videos-header,
.audio-header,
.images-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.videos-header span,
.audio-header span,
.images-header span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Estilos para audio-list y audio-item */
.audio-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.audio-item {
    background: rgba(30, 30, 45, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.audio-item .audio-player-container {
    padding: 0.75rem;
}

.audio-item-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #ffffff);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-item-date {
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-left: 1rem;
}

.audio-item-details {
    display: flex;
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    margin-top: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.audio-item-details span {
    margin-right: 0.75rem;
}

/* Estilos para estados de error y pendiente */
.audio-item.error .audio-error-container {
    padding: 0.75rem;
    background: rgba(220, 38, 38, 0.1);
}

.audio-item.error .error-message {
    display: flex;
    align-items: center;
    color: rgba(239, 68, 68, 0.9);
    margin-top: 0.5rem;
}

.audio-item.error .error-message i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.audio-item.pending .audio-pending-container {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(79, 70, 229, 0.1);
}

.audio-item.pending .loading-spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color, rgba(79, 70, 229, 0.9));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0.75rem 0;
}

.audio-item.pending p {
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.875rem;
}

/* Mensaje cuando no hay audios */
.no-audios-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    text-align: center;
}

.no-audios-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .audio-list {
        padding: 0.25rem;
    }
    
    .audio-item-title {
        font-size: 0.8rem;
    }
    
    .audio-item-details {
        flex-direction: column;
        gap: 0.25rem;
    }
}

