:root {
    --dark-bg: #0f0f0f;
    --panel-bg: #1a1a1a;
    --accent: #007bff;
    --text: #ffffff;
    --border: #333;
}

body, html {
    margin: 0; padding: 0;
    height: 100%; font-family: sans-serif;
    background: var(--dark-bg); color: var(--text);
    overflow: hidden;
}

.editor-container {
    display: flex; flex-direction: column; height: 100vh;
}

.editor-header {
    height: 50px; background: var(--panel-bg);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; border-bottom: 1px solid var(--border);
}

.main-content {
    flex: 1; display: grid; grid-template-columns: 250px 1fr;
}

.sidebar {
    background: var(--panel-bg); border-right: 1px solid var(--border); padding: 15px;
}

.upload-label {
    display: block; padding: 15px; background: var(--accent);
    text-align: center; border-radius: 5px; cursor: pointer;
}

.preview-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #000; padding: 20px;
}

.video-monitor video {
    max-width: 100%; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.timeline {
    height: 200px; background: var(--panel-bg); border-top: 2px solid var(--border);
}

.tracks-container {
    padding: 10px; overflow-x: auto;
}

.track {
    height: 60px; background: #252525; margin-bottom: 5px; border-radius: 4px;
}


/* მედია ბიბლიოთეკის სტილი */
.library-item {
    background: #2a2a2a;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid transparent;
}
.library-item:hover { border-color: var(--accent); }

/* Timeline კლიპის სტილი */

.timeline-clip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 250px; /* საწყისი სიგანე */
    background: linear-gradient(90deg, #3d5afe, #536dfe);
    color: white;
    font-size: 11px;
    padding: 0 10px;
    border-radius: 4px;
    cursor: grab;
    border: 1px solid #222;
    margin-right: 2px;
    white-space: nowrap;
    overflow: hidden;
}

.timeline-clip:active { cursor: grabbing; }

.resizer {
    width: 10px;
    height: 100%;
    background: rgba(255,255,255,0.2);
    cursor: ew-resize;
    position: absolute;
    right: 0;
}




.logo-label {
    background: #28a745 !important; /* მწვანე ფერი ლოგოსთვის */
    margin-top: 10px;
}



.timeline-clip {
    position: relative;
    background: #007bff;
    height: 50px;
    min-width: 50px;
    border-radius: 4px;
    overflow: hidden; /* რომ ტექსტი არ გამოვიდეს */
    resize: horizontal; /* ბრაუზერის სტანდარტული რესაიზერი */
}

.timeline-clip span {
    padding-left: 10px;
    pointer-events: none;
}






#videoTrack {
    position: relative; /* კლიპის აბსოლუტური პოზიციონირებისთვის */
    overflow: hidden;
    display: flex;
    align-items: center;
}

.timeline-clip {
    cursor: grab;
    user-select: none;
    /* სხვა სტილები უკვე გაქვს */
}