
/* CARDS */
.faqs-wrap .card {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 30px;
    margin: 20px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* VIDEO WRAPPERS */
#preview,
#trimmedvideo {
    width: 100%;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* TIMELINE AREA */
#timelineWrap {
    margin-top: 20px;
    width: 100%;
    position: relative;
    height: 100px;
    background: #f5f5f5;
    border-radius: 14px;
    padding: 20px;
}

#thumbStrip {
    width: 100%;
    height: 50px;
    background: #e3e3e3;
    border-radius: 10px;
    overflow: hidden;
}

/* HANDLES */
.handle {
    width: 14px;
    height: 60px;
    background: #007bff;
    border-radius: 8px;
    position: absolute;
    top: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.peg {
    width: 6px;
    height: 30px;
    background: white;
    border-radius: 6px;
}

/* TIME BUBBLES */
.time-bubble {
    position: absolute;
    top: -35px;
    padding: 6px 12px;
    background: #000;
    color: white;
    font-size: 13px;
    border-radius: 8px;
}

/* BUTTON ROW */
.controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

#trimBtn,
#resetBtn,
#downloadTrimBtn {
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* PRIMARY BUTTON */
#trimBtn {
    background: #009eff;
    color: white;
}
#trimBtn:hover {
    background: #007edb;
    transform: translateY(-2px);
}

/* RESET BUTTON */
#resetBtn {
    background: #f0f0f0;
    color: #333;
}
#resetBtn:hover {
    background: #dedede;
    transform: translateY(-2px);
}

/* DOWNLOAD BUTTON */
#downloadTrimBtn {
    background: #6a4bff;
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    font-size: 18px;
}
#downloadTrimBtn:hover {
    background: #5434e8;
    transform: translateY(-3px);
}

/* TWO COLUMN LAYOUT */
.faqs-wrap .col-md-7,
.faqs-wrap .col-md-5 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Responsive Fix */
@media(max-width: 1000px) {
    .faqs-wrap .col-md-7,
    .faqs-wrap .col-md-5 {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Base handle animation */
.handle {
    width: 14px;
    height: 60px;
    background: #007bff;
    border-radius: 8px;
    position: absolute;
    top: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;

    transition: 
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover animation */
.handle:hover {
    transform: scale(1.25);
    background-color: #0066d1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* While dragging */
.handle.dragging {
    transform: scale(1.3);
    background-color: #005bbf;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Peg animation */
.peg {
    width: 6px;
    height: 30px;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.25s ease;
}

.handle:hover .peg {
    transform: scale(1.15);
}

.handle.dragging .peg {
    transform: scale(1.2);
}
/*spinner styles*/
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.15);
  z-index: 9999;
}

.spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: #8b5cf6;
  border-right-color: #3b82f6;
  border-bottom-color: #ec4899;
  border-left-color: #f97316;
  animation: spin 1s linear infinite;
}

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