:root {
    --true-black: #000000;
    --jet-black: #0a0a0a;
    --licorice: #1a1110;
    --charcoal: #36454f;
    --matte-black: #28282b;
    --onyx: #353935;
    --obsidian: #0b1215;
    --sable-black: #060606;
    --iron-black: #0e0e10;
    --rich-black: #010203;
    --power-black: #0e0e0e;
    --warm-black: #ffffff;
    --carbon-black: #1a1a1a;
    --deep-black: #050203;
    --shadow-black: #0a0a0a;
    --raven: #6b7b8c;
    --smoke-black: #100c08;
    --dark-slate: #2f4f4f;
    --gunmetal: #2a3439;
    --ashen: #b2beb5;
    --black-olive: #3b3c36;
    --soft-black: #0a0a0a;
    --coal: #0c0c0c;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--midnight-black) 0%, var(--power-black) 100%);
}

.video-preview {
    aspect-ratio: 9/16;
}

.timeline {
    height: 80px;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.caption-text {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 250px; /* default width */
    position: fixed;
    top: 0;
    left: -250px; /* hidden by default */
    background-color: #000;
    overflow-x: hidden;
    transition: 0.3s;
    padding: 100px 10px 10px 10px;
    z-index: 49; /* Ensure sidebar is above other content */
}

.sidebar a {
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    color: #f1f1f1;
    display: block;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #575757;
}

/* Open state */
.sidebar.active {
    left: 0;
}

/* Toggle button */
.open-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    background: transparent;
    color: white;
    border: none;
    padding: 10px 15px;
    top: 20px;
    left: 20px;
    z-index: 49;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Popup styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--charcoal);
    padding: 2rem;
    border-radius: 10px;
    z-index: 1001;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.popup.active {
    opacity: 1;
    pointer-events: all;
}

/* Button animations */
.btn-hover {
    transition: all 0.3s ease;
}

.btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Navbar styles */
.navbar {
    background-color: var(--true-black);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0,0,0,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Video grid styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* AI suggestions panel */
.ai-suggestion {
    border-left: 4px solid #7c3aed;
    transition: all 0.3s ease;
}

.ai-suggestion:hover {
    background-color: rgba(124, 58, 237, 0.1);
}

/* Emotion detection indicator */
.emotion-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.emotion-happy { background-color: #f59e0b; }
.emotion-surprise { background-color: #ec4899; }
.emotion-laugh { background-color: #10b981; }

/* Waveform visualization */
.waveform {
    display: flex;
    align-items: flex-end;
    height: 40px;
    gap: 2px;
}

.waveform-bar {
    background-color: #7c3aed;
    width: 3px;
    border-radius: 2px;
    transition: height 0.3s ease;
}

/* Advanced editor tabs */
.editor-tab {
    position: relative;
    padding-bottom: 8px;
}

.editor-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #7c3aed;
    transition: width 0.3s ease;
}

.editor-tab.active::after {
    width: 100%;
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom file upload button */
.file-upload {
    position: relative;
    overflow: hidden;
}

.file-upload input {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

/* Reaction emoji picker */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #1f2937;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    z-index: 10;
}

.emoji-picker.show {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.emoji-option {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.emoji-option:hover {
    background: #374151;
}

/* Advanced color picker */
.color-picker {
    display: none;
    position: absolute;
    z-index: 10;
    background: #1f2937;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.color-picker.show {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: white;
}

/* AI processing indicator */
.ai-processing {
    position: relative;
}

.ai-processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: inherit;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Editor interface styles */
.editor-interface {
    display: none;
    min-height: 100vh;
    background: #0a0a0a;
}

.editor-interface.active {
    display: block;
}
/*
.video-editor-container {
    display: flex;
    height: calc(100vh - 64px);
}

.video-preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #374151;
}

.editor-controls-panel {
    width: 350px;
    background: #111827;
    overflow-y: auto;
}

.timeline-panel {
    height: 200px;
    background: #1f2937;
    border-top: 1px solid #374151;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

.video-player {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.timeline-track {
    height: 60px;
    background: #374151;
    margin: 10px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.timeline-clip {
    height: 100%;
    background: linear-gradient(45deg, #7c3aed, #a855f7);
    border-radius: 4px;
    position: absolute;
    min-width: 40px;
    cursor: grab;
}

.timeline-clip:active {
    cursor: grabbing;
}

.timeline-playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ef4444;
    z-index: 10;
    pointer-events: none;
}

.control-section {
    padding: 1rem;
    border-bottom: 1px solid #374151;
}

.control-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
*//*old things*/
/*new things here*/


.disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  #log {
    white-space: pre-wrap;
    background: var(--carbon-black);
    color: var(--text-light);
    padding: 10px;
    height: 150px;
    overflow-y: auto;
    margin: 20px auto;
    font-family: monospace;
    border: 1px solid var(--onyx);
    border-radius: 6px;
    max-width: 960px;
  }

  #crop-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    flex-wrap: wrap;
  }

  #video-section {
    flex: 1 1 600px;
    max-width: 640px;
    position: relative;
  }

  #inner-video-section {
    position: relative;
    width: 100%;
  }

  #crop-preview {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background-color: var(--true-black);
    border: 1px solid var(--charcoal);
    border-radius: 6px;
  }

  #crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    border: 4px dashed rgba(255, 0, 0, 0.8);
    background-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 13;
  }
/*
  #control-section {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px 16px;
    min-width: 280px;
    background: var(--charcoal);
    border: 1px solid var(--onyx);
    border-radius: 12px;
    padding: 20px;
  }
*/
  #control-section label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    gap: 6px;
  }

  #control-section input[type="number"],
  #control-section input[type="file"] {
    padding: 8px;
    border: 1px solid var(--carbon-black);
    background-color: var(--power-black);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
  }

  #crop-btn {
    grid-column: 1 / -1;
    padding: 10px 16px;
    font-size: 16px;
    background-color: var(--highlight);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  #crop-btn:hover {
    background-color: #6d28d9;
  }

  #crop-btn:disabled {
    background-color: #4b5563;
    cursor: not-allowed;
  }

  #crop-download {
    grid-column: 1 / -1;
    text-align: center;
    text-decoration: none;
    padding: 10px 16px;
    background-color: #10b981;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    display: inline-block;
  }

  #crop-download.disabled {
    background-color: #4b5563;
    pointer-events: none;
  }

  @media (max-width: 900px) {
    #crop-section {/*
      flex-direction: column;*/
      align-items: center;
    }

    #video-section,
    #control-section {
      width: 100%;
      max-width: none;
    }

    #crop-preview {
      max-height: 360px;
    }
  }

  @media (max-width: 480px) {
    #crop-preview {
      max-height: 240px;
    }
  }
  
/*new things done here*/
.slider-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #7c3aed;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #7c3aed;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1rem;
    color: #d1d5db;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification:hover {
    transform: scaleX(1);
}

.notification.show {
    transform: translateX(0);
}

.drag-over {
    border: 2px dashed #7c3aed !important;
    background-color: rgba(124, 58, 237, 0.1) !important;
}

.clip-item {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clip-item:hover {
    border-color: #7c3aed;
    background: #252d3f;
}

.clip-item.selected {
    border-color: #7c3aed;
    background: #2d1b69;
}

.export-progress {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1rem;
    color: #d1d5db;
    z-index: 1000;
    min-width: 300px;
    display: none;
}

.export-progress.show {
    display: block;
}

.brand-watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* 🔹 Mobile devices (up to 600px) */
@media (max-width: 600px) {
    /* Sidebar hidden by default, open button visible */
    .open-btn {
        display: flex;
    }
}

/* 🔹 Tablets (601px – 1024px) */
@media (min-width: 638px) and (max-width: 738px) {
    .open-btn {
        display: flex;
    }
}

/* 🔹 Large desktops (1025px and up) */
@media (min-width: 1025px) {
    .open-btn {
        display: none;
    }
}
/* 🔹 High-resolution devices */
@media (min-resolution: 192dpi) {
    .video-preview {
        aspect-ratio: 16/9;
    }

    .timeline {
        height: 100px;
    }

    .editor-controls-panel {
        width: 400px;
    }
}