/* General */
body {
    background-color: #f7f7f7;
}

.hidden {
    display: none !important;
}

#uploadArea {
    cursor: pointer;
}

#uploadArea.active {
    border-color: #f2711c;
    background-color: #fff8f2;
}

#fileName {
    font-size: 1.2em !important;
    word-break: break-all;
}


/* Timeline */
.timeline-base {
    width: 100%;
    height: 80px;
    background-color: #eeeeee;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: all 0.2s ease;
}

.timeline-base:hover {
    transform: scaleY(1.05);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #f2711c80; /* Orange with transparency */
    z-index: 1;
    pointer-events: none;
}

.timeline-selection {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #f2711c59; /* Lighter Orange with transparency */
    z-index: 2;
    border-left: 2px solid #f2711c;
    border-right: 2px solid #f2711c;
    display: none; /* Initially hidden */
}

.timeline-handle {
    position: absolute;
    top: 0;
    height: 100%;
    width: 10px;
    background-color: #f2711c;
    cursor: ew-resize;
    z-index: 3;
    border-radius: 3px;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.timeline-handle.start {
    left: -6px; /* Half of width */
}

.timeline-handle.end {
    right: -6px; /* Half of width */
}

.timeline-seek-handle {
    position: absolute;
    top: 0;
    left: -2px; /* Half of width */
    height: 100%;
    width: 4px;
    background-color: #d95c0d;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.timeline-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.timeline-grid .grid-line {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #0000001a;
}

.timeline-grid .time-label {
    position: absolute;
    bottom: -20px;
    font-size: 0.8em;
    color: #888;
    transform: translateX(-50%);
}

/* Disabled slider state */
input[type="range"][disabled] {
    filter: grayscale(100%);
    opacity: 0.5;
    cursor: not-allowed;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .ui.tabular.menu {
        display: flex;
        flex-wrap: nowrap;
    }

    .ui.tabular.menu .item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.8em 0.5em;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.85em; /* 텍스트 크기 축소 */
    }
}

/* Center Toast */
.toast-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 3000;
    max-width: 80vw;
    text-align: center;
    opacity: 0;
    transition: opacity 150ms ease, transform 150ms ease;
    pointer-events: none; /* 클릭 방해 X */
}

.toast-center.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-success { background: rgba(33, 186, 69, 0.95); }   /* Semantic green */
.toast-error   { background: rgba(219, 40, 40, 0.95); }   /* Semantic red */
.toast-warning { background: rgba(242, 113, 28, 0.95); }  /* Semantic orange */
.toast-info    { background: rgba(27, 28, 29, 0.95); }    /* Dark */
