
:root {
    --box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action:pan-y;
    
}
html {
    overscroll-behavior: none;
    overscroll-behavior-x: none;
    /*overscroll-behavior-y: none;*/
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action:pan-y;
}
@supports (-webkit-touch-callout: none) {
    html, body {
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: none;
        overscroll-behavior-x: none;
        overscroll-behavior-y: none;*/
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action:pan-y;
    }
}
@media (max-width: 768px) {
    html, body {
       overscroll-behavior: none;
        overscroll-behavior-x: none;
        /*overscroll-behavior-y: none;*/
        -webkit-overflow-scrolling: touch;
       
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}
.background {
    background-image: url(/img/gplaypattern.png);
    background-attachment: scroll;
    background-size: auto;
    background-position: 50% 0%;
    background-repeat: repeat;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}
@media (orientation: landscape) and (max-width: 1024px) and (hover: none) and (pointer: coarse)  {
  body {
    background: black !important;
    color: white !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    font-size: 20px;
  }

  

  body * {
    visibility: hidden !important;
  }

  body::after {
    content: "PLEASE USE PORTRAIT MODE";
    display: block;
    visibility: visible !important;
    position: absolute;
  }
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100%;
    overflow-y:scroll;
    /* Prevent off-scroll behavior on mobile devices */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   
}


    html {
    color-scheme: light dark;
  }

  [data-theme='light'] {
    color-scheme: light only;
  }

  [data-theme='dark'] {
    color-scheme: dark only;
  }

  :where(.fluid) {
    --fluid-min: calc(
      var(--font-size-min) * pow(var(--font-ratio-min), var(--font-level, 0))
    );
    --fluid-max: calc(
      var(--font-size-max) * pow(var(--font-ratio-max), var(--font-level, 0))
    );
    --fluid-preferred: calc(
      (var(--fluid-max) - var(--fluid-min)) /
        (var(--font-width-max) - var(--font-width-min))
    );
    --fluid-type: clamp(
      (var(--fluid-min) / 16) * 1rem,
      ((var(--fluid-min) / 16) * 1rem) -
        (((var(--fluid-preferred) * var(--font-width-min)) / 16) * 1rem) +
        (var(--fluid-preferred) * var(--variable-unit, 100vi)),
      (var(--fluid-max) / 16) * 1rem
    );
    font-size: var(--fluid-type);
  }

  *,
  *:after,
  *:before {
    box-sizing: border-box;
  }
   body {
    background: light-dark(white, black);
    min-height: 100svh;
    font-family: 'Geist', 'SF Pro Text', 'SF Pro Icons', 'AOS Icons',
      'Helvetica Neue', Helvetica, Arial, sans-serif, system-ui;
  }

  body::before {
    --size: 45px;
    --line: color-mix(in hsl, canvasText, transparent 70%);
    content: '';
    height: 100svh;
    width: 100%;
    position: fixed;
    background: linear-gradient(
          90deg,
          var(--line) 1px,
          transparent 1px var(--size)
        )
        50% 50% / var(--size) var(--size),
      linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% /
        var(--size) var(--size);
    mask: linear-gradient(-20deg, transparent 50%, white);
    top: 0;
    transform-style: flat;
    pointer-events: none;
    z-index: -1;
  }
    input[type="file"] {
      display: none;
    }
   
  

.feed-container {
    position:relative;
    grid-template-columns: 400px 400px;
    justify-content: center;
    align-items: start;
    min-height: 100dvh;
    width: 800px;
    margin: 0 auto;
    padding: 0;
}

.video-card { 
    position: fixed;
    width:100%;
    height:100dvh;
    max-width: 400px; /* Mobile container on desktop */
    aspect-ratio: 9/16; /* Mobile aspect ratio */
    background: #111;
    margin: 0;
    padding: 0;
    box-shadow: var(--box-shadow);
    min-width:400px;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 767px) and (orientation: portrait) and (pointer: coarse) and (hover: none) {
    .video-card,.feed-container, .side-container,.stack,.form-container,.upload-container,.uploaded-video-player {
        min-width: 100%!important;
        max-width:100%!important;
        width:100%!important;
    }
    
}

.video-player {
    position:absolute;
    width: 100%;
    height: 100%;
    /*object-fit: cover; /* FULL WIDTH AND HEIGHT INSIDE CONTAINER */
    /* iOS inline playback optimizations */
    -webkit-playsinline: true;
    -moz-playsinline: true;
    playsinline: true;
    webkit-playsinline: true;
    /* Prevent fullscreen on iOS */
    -webkit-media-controls-fullscreen-button: none;
    -webkit-media-controls-start-playback-button: none;
    
    /* Smooth fade transitions */
    opacity: 1;
    transition: opacity 0.6s ease-in-out;
    z-index: -1;
    transform: translateZ(-1px);
}



.video-player.fade-out {
    opacity: 0;
}

.video-player.fade-in {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000; /* Much higher than video */
}

.led-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.6;
    mix-blend-mode: screen;
    z-index:999
}



.overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: none;
}

.overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    display: none;
}

/* Show overlays when visible class is added */
.overlay-top.visible,
.overlay-bottom.visible {
    display: block;
    opacity: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.username {
    font-weight: 600;
    font-size: 14px;
}

.description {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

/* Mute Button (top right) */
.mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001; /* Higher than overlay */
    transition: all 0.2s ease;
}

.mute-btn:hover, .mute-btn:active {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.mute-icon {
    width: 24px;
    height: 24px;
    color: white;
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Progress Bar (Instagram style) */
.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    z-index: 100;
    border-radius: 0;
    box-sizing: border-box;
}

.progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    /*transition: width 0.1s linear;*/
    mix-blend-mode: difference;
    
    /* Adaptivne boje za različite pozadine */
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00);
}

/* Progress bar za tamnu pozadinu */
.progress-bar.dark-bg {
    background: linear-gradient(90deg, #00ff88, #00ccff, #88ff00);
    mix-blend-mode: screen;
}

/* Progress bar za svetlu pozadinu */
.progress-bar.light-bg {
    background: linear-gradient(90deg, #ff4444, #ff8800, #ff0088);
    mix-blend-mode: multiply;
}

/* Fallback adaptivni mod */
.progress-bar.adaptive {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    mix-blend-mode: difference;
}



@media (max-width: 480px) {
    .overlay-top, .overlay-bottom {
        padding: 15px;
    }
}

/* Continue Button */
.continue-btn {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1002;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.continue-btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}



@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    50% { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
}

/* Buy Button */
.buy-btn {
    position: absolute;
    top: 68px;
    left: 21px;
    background: linear-gradient(45deg, #00b894, #00a085);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 184, 148, 0.3);
    display: none;
    z-index: 1001;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.4);
}

/* Skip Button */
.skip-btn {
    position: absolute;
    bottom: 70px;
    left: 20px;
    width: 150px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
}

.skip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.skip-btn:active {
    transform: translateY(0);
}

/* Side Container Styles */
.side-container {
    position: absolute;
    
    top: 0;
    width: 400px;
    min-height:100vh;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.side-container.visible {
    right: 0;
}

.side-content {
    padding: 20px;
    color: rgb(0, 0, 0);
       
}

.side-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #000000;
}

.side-content p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.8;
}

/* Mobile Toggle Button */
.side-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 0; /* Remove any padding */
    line-height: 1; /* Reset line height */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.side-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.side-toggle-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 20px;
    line-height: 1;
}

.side-toggle-btn {
  border: 2px solid red;
  animation: blink-border 2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

@keyframes blink-border {
    0%, 50% { border-color: rgba(255, 255, 255, 0.8); }
    51%, 100% { border-color: rgba(255, 255, 255, 0.2); }
}

/* Action Buttons Container */
.action-buttons-container {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.action-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Specific button styles */
.like-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.comment-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.views-btn {
    position: relative;
}

.views-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Views Badge */
.views-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.7);
}

/* TikTok-style heart animation */
@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(2);
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Toast animations */
@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Loading Spinner Styles */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Live Viewers Styles */
.live-viewers {
    color: #fff;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff4444;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

.viewers-count {
    font-weight: 600;
}



/* Countdown Overlay Styles */
.avatar-container {
    position: relative;
}

.countdown-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    border: 2px solid black;
}

/* Desktop Layout - Side by side */
@media (min-width: 800px) {
       
   
    
    .side-container {
        display: inline-block;
        position: relative;
        right: 0;
        margin-left:400px;
        width: 400px;
        vertical-align: top;
    }
    
    .side-toggle-btn {
        display: none; /* Hide toggle on desktop */
    }
}

/* Mobile Layout - Stacked */
@media (max-width: 800px) {
    .feed-container {
        display: block;
        grid-template-columns: none;
        gap: 0;
        max-width:400px;
        min-width:400px;
    }
    
    .side-container {
        position: absolute;
        display:none;
       
    }
    
    .side-container.visible {
        right: 0;
    }
    
    .side-toggle-btn {
        display: flex !important; /* Show toggle on mobile */
    }
}

/* Theater Curtain Overlay */
.theater-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: curtainRise 8s ease-in-out forwards;
}

.curtain-content {
    text-align: center;
    color: #fff;
    opacity: 1;
}

.curtain-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.curtain-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    color: #fff;
    opacity: 0.8;
}

@keyframes curtainRise {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



.being-prepared-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Continue button should be above the black overlay */
.continue-btn {
position:absolute;
    z-index: 10000 !important;

}

.being-prepared-content {
    text-align: center;
    padding: 40px;
}

.being-prepared-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.being-prepared-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.being-prepared-subtitle {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.being-prepared-overlay .continue-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.being-prepared-overlay .continue-btn:hover {
    background: #f0f0f0;
    /*transform: scale(1.05);*/
}

/* iOS specific optimizations */
@supports (-webkit-touch-callout: none) {
    .video-player {
        -webkit-appearance: none;
        -webkit-media-controls-fullscreen-button: none !important;
        -webkit-media-controls-start-playback-button: none !important;
    }
    
    .video-player::-webkit-media-controls-fullscreen-button {
        display: none !important;
    }
    
    .video-player::-webkit-media-controls-start-playback-button {
        display: none !important;
    }
}
.stack {
    position: fixed;
    width: 400px;
    height: 100%;
    z-index: 1002;
    top: 0;
    display: none;
}
/* Form Styles */
.form-container {
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background: #5283af;
    padding: 20px;
}

.form-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00b894;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
}

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

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #00b894;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
}

.form-select option {
    background: #333;
    color: #fff;
    padding: 10px;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    position: relative;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview:hover {
    border-color: #00b894;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.avatar-input {
    display: none;
}

.avatar-label {
    background: linear-gradient(45deg, #00b894, #00a085);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.avatar-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.submit-btn, .cancel-btn {
    flex: 1;
    background: linear-gradient(45deg, #00b894, #00a085);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.submit-btn:hover, .cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.cancel-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Upload Container Styles */
.upload-container {
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background: white;
}

.upload-area {
    width: 99%;
    height: 99%;
    margin:1%;
    display: flex;
    
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px dashed #00b894;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.1) 0%, rgba(0, 160, 133, 0.1) 100%);
}

.upload-area:hover {
    border-color: #00a085;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.2) 0%, rgba(0, 160, 133, 0.2) 100%);
    transform: scale(1.02);
}

.upload-area.dragover {
    border-color: #00b894;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.3) 0%, rgba(0, 160, 133, 0.3) 100%);
    transform: scale(1.05);
}

.upload-content {
    text-align: center;
    color: #333;
    padding: 40px;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00b894;
}

.upload-subtitle {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.upload-formats {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* Upload Loader Styles */
.upload-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.upload-loader-content {
    text-align: center;
    color: #fff;
}

.upload-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #00b894;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.upload-loader-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-loader-subtext {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Player Container */
.video-player-container {
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background: white;
}

.uploaded-video-player {
    width: 100%;
    height: calc(100% - 80px);
    object-fit: contain;
    background: #000;
}

.video-controls {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
}

.back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Form Validation Styles */
.required {
    color: #ff6b6b;
    font-weight: bold;
}

.validation-error {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
    display: none;
}

.form-input.error,
.form-select.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-input.valid,
.form-select.valid {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.2);
}

/* Desktop Layout - Side by side */
@media (min-width: 768px) {
    .upload-container,
    .video-player-container,
    .form-container,
    .success-modal-container {
        position: absolute;  
    }
}

/* Mobile Layout - Stacked */
@media (max-width: 700px) {
    .upload-container,
    .video-player-container,
    .form-container,
    .success-modal-container {
        position: absolute;
        
    }
    
    .upload-container.visible,
    .video-player-container.visible,
    .form-container.visible,
    .success-modal-container.visible {
        right: 0;
    }
}

/* Success Modal Styles */
.success-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y:scroll;
}

.success-modal-container.show {
    display: flex;
}

.success-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    /* border-radius: 20px; */
    text-align: center;
    /* max-width: 500px; */
    /* margin: 20px; */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
}

.success-modal-container h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.success-modal-container p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.success-modal-container .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.success-modal-container .close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.success-modal-container .purchase-info {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-modal-container .purchase-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.success-modal-container .purchase-info p:last-child {
    margin-bottom: 0;
}

.success-modal-container .purchase-link {
    display: inline-block;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    margin: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* New styles for video link and purchase sections */
.success-modal-container .video-link-section,
.success-modal-container .purchase-info {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-modal-container .video-link-section h3,
.success-modal-container .purchase-info h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-modal-container .video-link-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.success-modal-container .video-link-container button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.success-modal-container .video-link-container button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.success-modal-container .video-link-container #videoLink {
    text-decoration: none;
    transition: all 0.3s ease;
}

.success-modal-container .video-link-container #videoLink:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.success-modal-container .video-link-container button {
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.success-modal-container .video-link-container button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.success-modal-container #videoLinkButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.success-modal-container .important-note {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.success-modal-container .important-note p {
    margin: 0;
    font-size: 14px;
    color: #fff;
    opacity: 0.9;
}

.success-modal-container .purchase-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.success-modal-container .purchase-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
}

.success-modal-container .free-info {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    color: #ffd700;
    margin-top: 15px;
}

/* Ideas Modal Styles */
.ideas-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: scroll;
}

.ideas-modal-container.show {
    display: flex;
}

.ideas-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
    position: relative;
    width: 100%;
}

.ideas-modal-container h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.ideas-modal-container p {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.ideas-modal-container h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.ideas-modal-container ul {
    color: #fff;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ideas-modal-container li {
    color: #fff;
    margin-bottom: 8px;
    opacity: 0.9;
}

.ideas-modal-container .ideas-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: left;
}

.ideas-modal-container .ideas-section p {
    margin-bottom: 15px;
    font-size: 16px;
}

.ideas-modal-container .ideas-section p:last-child {
    margin-bottom: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Side Close Button */
.side-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.side-close-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

/* Show close button when side container is open */
.side-container.show .side-close-btn {
    display: flex;
}

/* Mobile responsive - show side toggle only on mobile */
@media (min-width: 769px) {
    .side-toggle-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .action-buttons-container {
        right: 15px;
        bottom: 15px;
        gap: 8px;
    }
    
    /* Remove size reduction - keep original sizes */
    .action-btn, .side-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .side-toggle-btn span {
        font-size: 20px;
    }
}

/* Messager (Group Messages) Styles */
.messager {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff;
    color: #000;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.messager-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 20px;
    background: #fff;
}

.messager-loading-content {
    text-align: center;
}

.messager-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.messager-loading-content p {
    color: #666;
    font-size: 14px;
}

.messager-setup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 20px;
    background: #fff;
}

.messager-setup-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.messager-setup-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.messager-setup-content p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #666;
}

.messager-setup-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: #000;
    outline: none;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.messager-setup-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.messager-setup-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.messager-setup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.messager-setup-btn:active {
    transform: translateY(0);
}

.messager-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.messager-logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: #dc3545;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.messager-logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.messager-logout-btn:active {
    transform: translateY(0);
}

.messager-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.messager-participants {
    font-size: 12px;
    color: #666;
}

.participant-count {
    opacity: 0.7;
}

.messager-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
}

.messager-messages::-webkit-scrollbar {
    width: 6px;
}

.messager-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.messager-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.messager-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.message-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

.message-item.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.message-item.received {
    align-self: flex-start;
    background: #f0f0f0;
    color: #000;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.8;
}

.message-username {
    font-weight: 600;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messager-input-area {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.messager-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.messager-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #000;
    outline: none;
    transition: all 0.2s ease;
}

.messager-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.messager-input::placeholder {
    color: #999;
}

.messager-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.messager-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.messager-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.messager-char-count {
    text-align: right;
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    padding-right: 4px;
}

/* Mobile responsive for messager */
@media (max-width: 800px) {
    .messager {
        height: 100vh;
    }
    
    .messager-header {
        padding: 15px;
    }
    
    .messager-header h3 {
        font-size: 18px;
    }
    
    .messager-messages {
        padding: 15px;
    }
    
    .messager-input-area {
        padding: 12px 15px;
    }
    
    .messager-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .messager-send-btn {
        width: 40px;
        height: 40px;
    }
}
