﻿/* === Genel Ayarlar === */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Scroll'u sadece content'te göstereceğiz */
    display: flex;
    flex-direction: column;
}

/* === Layout === */
.layout-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.layout-body {
    display: flex;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

/* === Toolbar === */
.toolbar-container {
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.25rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

    .toolbar-container.dark {
        border-bottom: 1px solid #333;
        color: #eee;
    }

    .toolbar-container .dx-toolbar {
        flex-grow: 1;
    }

.bi {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* === Drawer === */

.drawer {
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 6px rgba(0,0,0,0.05);
    height: 100%;
}

    .drawer:has(.drawer-menu) {
        --dxbl-drawer-panel-body-padding-x: 0;
        --dxbl-drawer-panel-body-padding-y: 0;
    }

    .drawer .dx-treeview {
        padding: 1rem;
        background-color: #ffffff;
    }

    .drawer .card-title {
        padding: 1rem;
        margin: 0;
        border-bottom: 1px solid #ddd;
        font-size: 1rem;
        font-weight: 600;
        color: #333;
    }


.drawer-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden; /* EKLENDİ */
}

.drawer-header {
    width: 100%; /* => burası kritik */
    padding: 8px;
    box-sizing: border-box;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
}



.dx-treeview .dx-treeview-node.dx-state-selected {
    font-weight: 600;
    border-radius: 4px;
}

/* === Content === */
.main-content-wrapper {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto; /* İçerik scroll */
    padding: 1rem;
    box-sizing: border-box;
}

.drawer-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    width: 100%;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block
}

.status-ok {
    background: #22c55e
}

.status-connecting {
    background: #f59e0b;
    animation: pulse 1s infinite
}

.status-off {
    background: #ef4444
}

@keyframes pulse {
    0% {
        opacity: .4
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: .4
    }
}
