:root {
    --bg-main: #0b0e14;
    --bg-card: #151a23;
    --bg-card-hover: #1e2532;
    --primary: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --secondary: #7000ff;
    --success: #00e676;
    --warning: #ffb300;
    --danger: #ff1744;
    --text-main: #f0f2f5;
    --text-muted: #8b949e;
    --border: #2d3342;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background-color: rgba(11, 14, 20, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-timers {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.workout-header-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.logo { font-weight: 800; font-size: 1.8rem; letter-spacing: -1px; cursor: pointer; user-select: none; }
.logo .dot { color: var(--primary); }
.nav-menu { display: flex; gap: 1rem; }
.nav-btn {
    background: transparent; border: none; color: var(--text-muted);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-btn:hover { color: var(--text-main); background-color: rgba(255, 255, 255, 0.05); }
.nav-btn.active { color: var(--primary); background-color: rgba(0, 229, 255, 0.1); }

.main-content { flex: 1; padding: 2rem; overflow-x: hidden; }
.view { display: none; animation: fadeIn 0.4s ease; }
.view.active { display: block; }

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

.dashboard-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
    gap: 2rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}
@media (max-width: 900px) { 
    .dashboard-grid { grid-template-columns: 1fr; } 
    .main-content { padding: 1rem; }
}

.card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 1px solid var(--border); padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.card-header { margin-bottom: 1.5rem; }
.card-header h2 { font-weight: 600; font-size: 1.4rem; }
.subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

.btn {
    padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); border: none;
    font-weight: 600; font-family: inherit; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-small { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { box-shadow: 0 0 20px var(--primary-glow); }
.btn-danger { background: rgba(255, 23, 68, 0.1); color: var(--danger); border: 1px solid rgba(255, 23, 68, 0.3); }
.btn-danger:hover { background: var(--danger); color: #fff; box-shadow: 0 0 20px rgba(255, 23, 68, 0.4); }
.btn-success { background: rgba(0, 230, 118, 0.1); color: var(--success); border: 1px solid rgba(0, 230, 118, 0.3); }
.btn-success:hover { background: var(--success); color: #000; box-shadow: 0 0 20px rgba(0, 230, 118, 0.4); }
.btn-warning { background: rgba(255, 179, 0, 0.1); color: var(--warning); border: 1px solid rgba(255, 179, 0, 0.3); }

.calendar-wrapper { width: 100%; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 600; }
.calendar-header button { background: var(--bg-card-hover); border: none; color: var(--text-main); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.calendar-header button:hover { background: var(--primary); color: #000; }
.calendar-days-names { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    text-align: center; 
    font-weight: 600; 
    color: var(--text-muted); 
    margin-bottom: 0.5rem; 
    font-size: 0.8rem; 
}
.calendar-days-names span { display: flex; justify-content: center; align-items: center; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--bg-card-hover); border-radius: 50%; font-size: 0.9rem; cursor: pointer; border: 2px solid transparent; }
.cal-day:hover { border-color: var(--border); }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day.completed { border-color: var(--primary); color: var(--primary); box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.2); }
.cal-day.today { background: #ffffff; color: var(--bg-main); font-weight: 800; border-color: #ffffff; }
.cal-day.today.completed { border-color: var(--primary); box-shadow: 0 0 12px rgba(0, 229, 255, 0.6); }

.workouts-list { display: flex; flex-direction: column; gap: 1rem; }
.workout-item { 
    background: var(--bg-card-hover); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-md); 
    padding: 1rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    transition: transform 0.2s, opacity 0.2s; 
}
.workout-item:active { cursor: default; }
.workout-item.dragging { 
    opacity: 0.4; 
    transform: scale(0.98); 
    border: 2px dashed var(--primary);
    background: rgba(0, 229, 255, 0.05);
}
.workout-item.drag-over { 
    border-top: 4px solid var(--primary); 
    background: rgba(0, 229, 255, 0.1);
}

.workout-days > div { cursor: default; }
.workout-days > div:active { cursor: default; }
.workout-days > div.dragging { 
    opacity: 0.4; 
    transform: scale(0.95); 
    background: var(--primary);
}
.workout-days > div.drag-over { 
    border-left: 4px solid var(--primary); 
    background: rgba(0, 229, 255, 0.2);
}
.workout-item-header { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.workout-item-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.workout-days { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; width: 100%; }
.day-chip { background: rgba(255, 255, 255, 0.05); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; cursor: pointer; border: 1px solid transparent; transition: var(--transition); }
.day-chip:hover { border-color: var(--primary); color: var(--primary); }

.import-area { margin: 2rem 0; }
.file-upload-label { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; border: 2px dashed var(--border); border-radius: var(--radius-lg); cursor: pointer; background: rgba(255,255,255,0.02); }
.file-upload-label:hover { border-color: var(--primary); background: rgba(0, 229, 255, 0.05); }
.upload-icon { font-size: 3rem; margin-bottom: 1rem; }
.hidden-input { display: none; }
.ad-container { margin-top: 2rem; width: 100%; display: flex; justify-content: center; }
.ad-placeholder { width: 100%; max-width: 728px; height: 90px; background: rgba(255,255,255,0.05); border: 1px dashed var(--text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); border-radius: var(--radius-sm); }

/* Edição Inline */
[contenteditable="true"] { outline: none; border-bottom: 1px dashed transparent; transition: var(--transition); }
[contenteditable="true"]:hover { border-bottom: 1px dashed var(--text-muted); }
[contenteditable="true"]:focus { border-bottom: 1px solid var(--primary); }
.editable-group { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.editable-group h2, .editable-group h3, .editable-group p { text-align: center; }
.edit-icon { font-size: 0.8rem; color: var(--text-muted); opacity: 0; transition: var(--transition); cursor: pointer; }
.editable-group:hover .edit-icon { opacity: 1; }

.workout-execution-header { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 1.5rem 2rem; border-radius: var(--radius-lg); margin-bottom: 2rem; border: 1px solid var(--border); }
@media (max-width: 600px) { .workout-execution-header { flex-direction: column; align-items: center; gap: 1rem; text-align: center; } .workout-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; } }

.workout-controls { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.timer-box { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); padding: 0.5rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.action-timer-box { background: rgba(255, 179, 0, 0.1); border-color: rgba(255, 179, 0, 0.3); cursor: pointer; transition: var(--transition); }
.action-timer-box:hover { opacity: 0.8; box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); }
.action-timer-box.executing { background: rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.3); }
.timer-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 0.2rem; }
.main-timer { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-muted); transition: var(--transition); line-height: 1; }
.main-timer.active { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.action-timer-text { color: var(--warning); }
.action-timer-box.executing .action-timer-text { color: var(--primary); }

.active-exercises-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.exercise-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.exercise-block.all-sets-done { border-color: var(--primary); border-width: 2px; box-shadow: 0 0 15px var(--primary-glow); }
.exercise-block.dragging { 
    opacity: 0.4; 
    transform: scale(0.98); 
    border: 2px dashed var(--primary);
    background: rgba(0, 229, 255, 0.05);
}
.exercise-block.drag-over { 
    border-top: 4px solid var(--primary); 
    background: rgba(0, 229, 255, 0.05);
}

/* Collapsible exercise accordion */
.exercise-collapse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.2rem 0;
    user-select: none;
    -webkit-user-select: none;
    gap: 0.5rem;
    cursor: pointer;
}
.exercise-collapse-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}
.exercise-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}
.exercise-chevron.expanded {
    transform: rotate(90deg);
    color: var(--primary);
}
.exercise-collapse-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    outline: none;
    border-bottom: 1px dashed transparent;
    transition: var(--transition);
    word-break: break-word;
    flex: 1;
}
.exercise-collapse-name:hover {
    border-bottom-color: var(--text-muted);
}
.exercise-collapse-name:focus {
    border-bottom-color: var(--primary);
    color: var(--primary);
    white-space: normal;
    overflow: visible;
}
.exercise-collapse-summary {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.7rem;
    border-radius: 12px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}
.exercise-collapse-summary.hidden {
    opacity: 0;
    pointer-events: none;
}
.exercise-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}
.exercise-collapse-body.expanded {
    max-height: 5000px;
    opacity: 1;
}

.exercise-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;}
.exercise-block-header h3 { font-size: 1.2rem; color: var(--primary); display: inline-block; }
.exercise-meta { 
    display: flex; 
    gap: 0.8rem; 
    align-items: center; 
    color: var(--text-main); 
    font-size: 0.95rem; 
    background: rgba(0, 229, 255, 0.08); 
    padding: 0.6rem 1.2rem; 
    border-radius: var(--radius-md); 
    border: 1px solid rgba(0, 229, 255, 0.2);
    font-weight: 600;
}
.exercise-meta::before { content: '⏱'; font-size: 1.1rem; }
.exercise-meta input { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--border); 
    color: var(--primary); 
    font-weight: 800; 
    width: 45px; 
    text-align: center; 
    font-family: inherit; 
    font-size: 1rem; 
    outline: none; 
    border-radius: 4px;
    padding: 0.2rem;
    transition: var(--transition); 
}
.exercise-meta input:focus { border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }

.sets-list { display: flex; flex-direction: column; gap: 0.8rem; }
.set-row { display: flex; justify-content: space-between; background: var(--bg-card-hover); border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius-md); gap: 1rem; transition: var(--transition); }
.set-row.active { background: rgba(0, 229, 255, 0.05); border-color: var(--primary); }
.set-row.completed { opacity: 0.6; border-color: transparent; }

.set-content { display: flex; flex-direction: column; flex: 1; gap: 1rem; }
.set-header-row { display: flex; justify-content: space-between; align-items: center; }
.set-number { font-weight: 800; color: var(--primary); font-size: 1.1rem; }
.type-selector { background: transparent; border: 1px solid var(--border); color: var(--text-main); padding: 0.3rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.9rem; width: 100px; outline: none; cursor: pointer; }
.type-selector:focus { border-color: var(--primary); }
.type-selector option { background: var(--bg-card); color: var(--text-main); }
.type-selector option:checked { background: var(--primary); color: #000; }

.set-inputs-row { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.input-group { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; flex: 1; }
.input-group input { background: rgba(0,0,0,0.2); border: 1px solid var(--border); color: var(--text-main); padding: 0.8rem 0.5rem; border-radius: var(--radius-sm); width: 100%; text-align: center; font-size: 1.1rem; font-weight: 600; font-family: inherit; transition: var(--transition); }
.input-group input:focus { outline: none; border-color: var(--primary); background: transparent; }
.input-label { font-size: 0.8rem; color: var(--text-muted); text-transform: lowercase; }
.input-separator { width: 1px; height: 30px; background-color: var(--border); }

.set-actions { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; min-width: 90px; }
.set-actions button { width: 100%; justify-content: center; padding: 0.5rem; font-size: 0.85rem; }

.btn-add-set { background: transparent; border: 1px dashed var(--primary); color: var(--primary); width: 100%; padding: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: var(--radius-md); cursor: pointer; font-weight: 600; transition: var(--transition); font-size: 1rem; }
.btn-add-set:hover { background: rgba(0, 229, 255, 0.05); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 500px; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; animation: zoomIn 0.3s ease; }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.btn-close-modal { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }

/* Otimizações Mobile-first */
@media (max-width: 600px) {
    .hide-mobile { display: none; }
    .workout-header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    .app-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }
    .header-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .global-timers {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }
    .timer-box {
        padding: 0.3rem 0.5rem;
    }
    .main-timer {
        font-size: 1.2rem;
    }
    .workout-execution-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    #btn-manual-start {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    #summary-ad-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: #000;
        z-index: 999;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid var(--border);
    }
    #summary-video-ad {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }
    .ad-badge {
        position: absolute;
        top: 5px;
        right: 10px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        font-size: 0.6rem;
        padding: 2px 5px;
        border-radius: 3px;
        border: 1px solid rgba(255,255,255,0.3);
    }
    .set-row {
        padding: 0.8rem 0.5rem;
        gap: 0.5rem;
    }
    .set-actions { min-width: 70px; }
    .type-selector { width: 80px; }
}
/* Summary View Styles */
#view-summary { padding-top: 0; }
.summary-header { text-align: center; margin-bottom: 2.5rem; padding-top: 2rem; }
.summary-title { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.5rem; text-shadow: 0 0 20px var(--primary-glow); }
.summary-title .gympler-brand { text-shadow: none; }
.summary-title .dot { color: var(--primary); }
.summary-subtitle { font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.summary-date { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.summary-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card-hover); padding: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-main); }
.stat-comparison { font-size: 0.8rem; margin-top: 0.5rem; font-weight: 600; }
.stat-comparison.positive { color: var(--success); }
.stat-comparison.negative { color: var(--danger); }
.stat-comparison.neutral { color: var(--primary); }

.summary-exercises-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.summary-ex-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem; }
.summary-ex-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8rem; }
.summary-ex-name { font-weight: 700; font-size: 1.1rem; color: var(--text-main); }
.summary-ex-stats { font-size: 0.9rem; color: var(--text-muted); }
.summary-ex-comparison { font-size: 0.85rem; margin-top: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 6px; background: rgba(255,255,255,0.03); display: inline-block; }
/* Original Fixed Footer Video */
.native-ad-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #000;
    z-index: 999;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border);
}
.native-video-ad {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.ad-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .summary-stats-grid { grid-template-columns: 1fr; }
    .summary-title { font-size: 1.8rem; }
    .native-ad-container { height: 80px; }
}

/* Drag Handles */
.drag-handle {
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0.5;
    padding: 0.5rem;
    transition: all 0.2s;
}
.drag-handle:active { cursor: grabbing; }
.drag-handle:hover { color: var(--primary); }

.workout-drag-handle { 
    margin-bottom: 0; 
    color: #fff;
    opacity: 0.5; 
    padding: 0; 
    height: 12px; 
    display: flex; 
    align-items: center; 
    transition: opacity 0.2s;
}
.workout-drag-handle:hover { opacity: 0.6; }
.workout-drag-handle svg { width: 16px; height: 16px; }
.day-drag-handle { margin-right: 0.2rem; padding: 0; color: var(--text-muted); opacity: 0.6; }
.ex-drag-handle { margin-right: 0.3rem; opacity: 0.7; }
.drag-handle:hover { color: var(--primary); opacity: 1; }

/* Onboarding Tooltip */
.onboarding-tooltip {
    z-index: 10000;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}
.tooltip-content {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
    animation: bounce 2s infinite;
    border: 1px solid var(--border);
}
.tooltip-content .dot { color: var(--primary); }
.tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #000;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Edit Pencil Icon */
.btn-edit-title {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    opacity: 0.6;
}
.btn-edit-title:hover {
    color: var(--primary);
    opacity: 1;
    background: rgba(0, 229, 255, 0.1);
}
.title-edit-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}
[contenteditable="true"] {
    border-bottom: 1px dashed var(--primary) !important;
    background: rgba(0, 229, 255, 0.05);
}
