:root {
    --lh-bg: #364f6b;
    --lh-slate-dark: #1e2d3b;
    --lh-slate-gradient-top: #4a6b8a;
    --lh-slate-gradient-bottom: #1e2d3b;
    --lh-border: rgba(255, 255, 255, 0.3);
    --lh-glass: rgba(255, 255, 255, 0.1);
    --lh-green: #55c447;
    --lh-blue-highlight: #286796;
    --font-main: 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at 50% 30%, var(--lh-slate-gradient-top), var(--lh-slate-gradient-bottom));
    background-attachment: fixed;
    color: white;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Top Bar --- */
.top-bar {
    height: 50px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    border-bottom: 1px solid var(--lh-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.brand {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.brand-icon {
    width: 16px; height: 16px;
    background: white;
    box-shadow: 0 0 10px white;
    border-radius: 50%;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin-right: 15px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    background: rgba(255,255,255,0.1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.search-container { margin-left: auto; }
input[type="text"] {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--lh-border);
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    outline: none;
    width: 200px;
    transition: width 0.3s;
}
input[type="text"]:focus { width: 250px; background: rgba(0,0,0,0.4); }

/* --- Layout --- */
.container { display: flex; flex: 1; overflow: hidden; }

.sidebar {
    width: 260px;
    background: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
    border-right: 1px solid var(--lh-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(255,255,255,0.02);
}

/* --- Tiles & Widgets --- */
.tile {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--lh-border);
    border-radius: 6px;
    padding: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tile h3 {
    font-size: 13px;
    color: #aaccff;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.tile ul { list-style: none; }
.tile li a {
    color: #ddd;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 5px;
    border-radius: 3px;
}
.tile li a:hover, .tile li a.active-cat {
    background: rgba(255,255,255,0.1);
    color: white;
    text-shadow: 0 0 8px white;
}

.clock-widget { text-align: center; }
.time-disp { font-size: 28px; font-weight: 100; }
.date-disp { font-size: 11px; opacity: 0.7; }

.progress-bar-bg {
    height: 6px; background: rgba(0,0,0,0.3);
    border-radius: 3px; margin-top: 10px; overflow: hidden;
}
.progress-bar-fill {
    width: 65%; height: 100%;
    background: var(--lh-green);
    box-shadow: 0 0 10px var(--lh-green);
}

/* --- Grid & Cards --- */
.hero-header { margin-bottom: 25px; border-bottom: 1px solid var(--lh-border); padding-bottom: 15px; }
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #999;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-3px); border-color: var(--lh-blue-highlight); }

.card-header {
    background: linear-gradient(180deg, #e6e6e6 0%, #cfcfcf 100%);
    padding: 8px 12px;
    border-bottom: 1px solid #bbb;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
}

.tag {
    background: #999; color: white;
    padding: 1px 5px; border-radius: 3px;
    font-size: 10px; text-transform: uppercase;
}

.card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-weight: bold; font-size: 15px; margin-bottom: 5px; }
.card-desc { font-size: 12px; color: #555; flex: 1; margin-bottom: 15px; }

.lh-btn {
    border: 1px solid #2b661e;
    border-radius: 3px;
    padding: 6px 0;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.lh-btn.primary {
    background: linear-gradient(180deg, #65d656 0%, #3F8C2E 100%);
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.lh-btn.primary:hover { background: linear-gradient(180deg, #7af56a 0%, #4caf3a 100%); }

.lh-btn.secondary {
    background: linear-gradient(180deg, #f0f0f0 0%, #d0d0d0 100%);
    border: 1px solid #999;
    color: #333;
}
.lh-btn.secondary:hover { background: #e0e0e0; }

/* --- Modal --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hidden { display: none; }

.window-modal {
    width: 450px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #666;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: popIn 0.2s ease-out;
}

@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.window-header {
    background: linear-gradient(to right, #364f6b, #4a6b8a);
    color: white;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.window-content { padding: 20px; color: #333; }
.window-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.window-actions button { width: 100px; }

.mono { font-family: monospace; background: #eee; padding: 2px 5px; }
.file-meta p { margin-bottom: 5px; font-size: 13px; }