 /* STYLE GAUNTLET LIST */
/* Base reset to clear default spacing */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}

/* Sidebar Styling (Left) */
.sidebar {
    width: 300px; 
    background-color: #1a252f; /* Darkened slightly to match your theme's depth */
    padding: 25px 15px;
    display: block; 
    overflow-y: auto; 
    height: 100vh;
    border-right: 1px solid #2c3e50;
}

.sidebar h3 {
    color: #ffffff;
    margin-bottom: 12px;
    padding-left: 5px;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

/* List Layout Fixes */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    display: block;
    margin-bottom: 6px;
    height: auto; 
    clear: both;
}

/* Navigation Links and Folder Headers Styling */
.sidebar a, .sidebar summary {
    color: #cbd5e1; /* Brighter slate for better readability */
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    display: block; 
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Hover effects */
.sidebar a:hover, .sidebar summary:hover {
    background-color: #2c3e50;
    color: #ffffff;
    padding-left: 18px; /* Smooth slide-in effect on hover */
}

/* Hide the default browser details arrow marker */
.sidebar details summary::-webkit-details-marker {
    display: none;
}
.sidebar details summary {
    list-style: none;
    display: flex;
    align-items: center;
}

/* Add the custom arrow '➤' before the folder title */
.sidebar details summary::before {
    content: "➤";
    display: inline-block;
    margin-right: 10px;
    font-size: 0.85rem;
    color: #3498db; /* Sleek blue tint for the arrow */
    transition: transform 0.2s ease;
}

/* Rotate the arrow downwards when the folder expands */
.sidebar details[open] summary::before {
    transform: rotate(90deg);
    color: #e74c3c; /* Changes color when open (optional, tweak as you like) */
}

/* Behavior when folder header is open */
.sidebar details[open] summary {
    color: #ffffff;
    background-color: rgba(44, 62, 80, 0.4);
}

/* Sub-list inside folders styling */
.sidebar details ul {
    padding-left: 15px; 
    margin-top: 5px;
    margin-bottom: 8px;
    border-left: 2px solid #34495e; 
    display: block;
}

.sidebar details ul li {
    margin-bottom: 2px; 
}

/* Nested links styling for better hierarchy */
.sidebar details ul a {
    font-size: 0.9rem;
    padding: 8px 12px;
    color: #94a3b8; /* Dimmed slightly so folders stand out more */
}

.sidebar details ul a:hover {
    color: #ffffff;
    background-color: #2c3e50;
    padding-left: 16px;
}

/* Content Display Window (Right) */
.content-area {
    flex: 1; 
    border: none; 
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

/* Sidebar Header Container */
.sidebar-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #34495e;
    padding-bottom: 15px;
}

/* Search Box Wrapper */
.search-wrapper {
    position: relative;
    padding: 0 5px;
}

/* Search Input Styling */
.sidebar-search {
    width: 100%;
    padding: 10px 12px;
    background-color: #0f172a; /* Deeper dark background to contrast the sidebar */
    border: 1px solid #34495e;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

/* Placeholder text styling */
.sidebar-search::placeholder {
    color: #64748b;
}

/* Focus state - subtle blue glow to match the arrows */
.sidebar-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
