/* Zkopíruj obsah z html/___test/styly3.css a uprav pro tento layout */
/* Příklad: Předpokládej, že styly3.css má základní styly pro panely, header, footer */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

/* Zkopíruj obsah z html/___test/styly3.css a uprav pro tento layout */
/* Příklad: Předpokládej, že styly3.css má základní styly pro panely, header, footer */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 45px; /* fits title bar + menu bar */
    background-color: #f0f0f0;
    color: #212121;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    z-index: 1000;
}

.app-title-bar{
    display:flex;
    padding:2px 2px;
    user-select:none;
    background-color:#0078d7;
    color:white;
    font-weight:500;
    width:100%;
}

.menu-bar {
    background-color: #f0f0f0;
    border-bottom: 1px solid #c0c0c0;
    display: flex;
    padding: 0 4px;
    user-select: none;
    width:100%;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
}

.menu-item { position: relative; font-size: 0.8rem; }
.menu-item > button {
    background: none;
    border: 1px solid transparent;
    padding: 2px 8px;
    font-size: 0.8rem;
    cursor: pointer;
}
.menu-item > button:hover,
.menu-item > button.active {
    background-color: #e0e8f0;
    border: 1px solid #c0d5ea;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f0f0f0;
    border: 1px solid #909090;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    padding: 2px;
    z-index: 1001;
}
.dropdown-menu.visible { display: block; }
.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}
.dropdown-item:hover { background-color: #0078d7; color: white; }
.separator { height: 1px; background-color: #c0c0c0; margin: 4px 1px; }

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: #ccc;
    padding: 5px 20px;
}

#main {
    position: fixed;
    top: 64px; /* below fixed header */
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
}

#LeftPanel {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #ccc;
    overflow-y: auto;
}

#splitter {
    width: 5px;
    background-color: #ccc;
    cursor: ew-resize;
}

#MainPanel {
    flex: 1;
    background-color: #fff;
    overflow-y: auto;
    padding: 20px;
}

#RightPanel {
    width: 250px;
    background-color: #fff;
    border-left: 1px solid #ccc;
    overflow-y: auto;
    display: none;
}

/* Další styly z styly3.css, např. pro tree, buttons atd. */
/* Win-like treeview styles (ported from ___test/styly3.css) */
.win-tree {
    font-size: 1rem;
    color: #212121;
    background-color: #fff;
    padding-left: 0;
    margin: 0;
    border:1px solid #ddd;
    list-style-type: none;
}

.win-tree ul {
    padding-left: 16px;
    list-style-type: none;
    margin: 2px 0;
}

.win-tree li { margin: 0; padding: 0; }

.win-tree li > span {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
}

.win-tree li.folder > span { cursor: pointer; }
.win-tree li.folder > span:hover { background-color: #e6f3ff; }

.win-tree li > span::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.win-tree li.folder.collapsed > span::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFC107' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'%3e%3c/path%3e%3c/svg%3e");
}
.win-tree li.folder.expanded > span::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FFC107' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2v1'%3e%3c/path%3e%3c/svg%3e");
}
.win-tree li.folder.collapsed > ul { display: none; }
.win-tree li.folder.expanded > ul { display: block; }
.win-tree li.file > span::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3e%3c/path%3e%3cpolyline points='14 2 14 8 20 8'%3e%3c/polyline%3e%3c/svg%3e");
}

.win-tree img.ext-icon { width:16px; height:16px; margin-left:6px; opacity:0.9; }