/* --- Pencere modları --- */

#chartModal .modal-dialog {
    max-width: 100%;
}

#chartModal.chart-window .modal-dialog {
    position: fixed;
    margin: 0;
    inset: auto;
}

#chartModal.chart-window-normal .modal-dialog {
    width: 70vw;
    height: 65vh;
    top: 0;
    left: 0;
}

#chartModal.chart-window-max .modal-dialog {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

/* Alt boşluğu yok etmek için: içerik ve body tam doldursun */
#chartModal .modal-content {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

#chartModal .modal-body {
    padding: 0;
    height: calc(
        100% - 56px
    ); /* header ~56px, senin header yüksekliğine göre ayarla */
}

#chart-lite-wrapper,
#chart-tv-wrapper {
    width: 100%;
    height: 100%;
}

.chart-fill {
    width: 100%;
    height: 100%;
}

/* Başlıktan sürükleme */
#chartModal .modal-header {
    cursor: move;
    background: linear-gradient(90deg, #22313f, #1a252f);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Pencere butonları --- */

.chart-win-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-win-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease, transform 0.1s ease;
    color: #f5f5f5;
    font-size: 13px;
}

.chart-win-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.chart-win-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.22);
}

.chart-win-btn-close {
    background: rgba(255, 71, 87, 0.25);
}

.chart-win-btn-close:hover {
    background: rgba(255, 71, 87, 0.5);
}

/* Taskbar butonu ufak dursun */
#chart-taskbar {
    z-index: 1060;
}

#chart-task-btn {
    border-radius: 999px;
    font-size: 12px;
    padding: 4px 10px;
}
