/* htdocs/main/css/style_x.css */

/* Global Reset & Flex Layout to force footer to the bottom */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header Container */
header {
    background-color: #222;
    color: white;
    padding: 10px 20px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

/* Navigation Bar */
.navbar {
    background-color: #333;
    display: flex;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
}

.menu-item > a:hover {
    background-color: #555;
}

/* Dropdown Menu (Level 2) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    white-space: nowrap; 
}

.menu-item:hover .dropdown {
    display: block;
}

.dropdown-item > a {
    display: block;
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
}

.dropdown-item > a:hover {
    background-color: #f1f1f1;
}

/* Main Application Layout Wrapper */
.app-container {
    display: flex;
    flex: 1; /* Takes up all available space between header and footer */
}

/* Left Sidebar for Files (Level 3) */
.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.sidebar a {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.sidebar a:hover {
    color: #000;
    font-weight: bold;
}

/* Right Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    background-color: #fdfdfd;
}

/* Footer Layout */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}