@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Roboto:wght@400;700&display=swap');

:root {
    --bg-dark: #1f2229;
    --win-bg: #2d323e;
    --kali-blue: #0099ff;
    --kali-text: #e6e6e6;
    --border: #444c56;
}

* { box-sizing: border-box; }

body {
    margin: 0; height: 100vh;
    background: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?q=80&w=2070') no-repeat center center/cover;
    font-family: 'Roboto', sans-serif; overflow: hidden; user-select: none;
}

/* --- Top Bar --- */
.top-bar {
    position: fixed; top: 0; left: 0; width: 100%; height: 30px;
    background: rgba(20, 20, 20, 0.95); color: white;
    display: flex; align-items: center; padding: 0 15px;
    z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.5); font-size: 13px;
}
.start-menu { font-weight: bold; margin-right: 20px; cursor: pointer; }
.start-menu i { color: var(--kali-blue); margin-right: 5px; }
.clock-area { margin-left: auto; display: flex; gap: 15px; align-items: center; }

/* --- Context Menu --- */
.context-menu {
    display: none; position: absolute; z-index: 9999;
    background: rgba(30, 30, 30, 0.95); border: 1px solid #444;
    width: 200px; padding: 5px 0; border-radius: 5px;
    box-shadow: 2px 2px 10px black; backdrop-filter: blur(5px);
}
.menu-item {
    padding: 8px 15px; color: white; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; gap: 10px;
}
.menu-item:hover { background: var(--kali-blue); }
hr { border: 0; border-top: 1px solid #444; margin: 3px 0; }

/* --- Desktop Icons --- */
.desktop-icon {
    position: absolute; color: white; text-align: center;
    width: 90px; cursor: pointer; text-shadow: 0 1px 3px black;
    transition: 0.2s; padding: 10px; border-radius: 5px;
}
.desktop-icon:hover { background: rgba(255,255,255,0.1); }
.desktop-icon i { margin-bottom: 5px; color: var(--kali-blue); }
.desktop-icon span { display: block; font-size: 13px; }

/* --- Window System --- */
.window {
    position: absolute; background: var(--win-bg);
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column; border: 1px solid var(--border);
    min-width: 400px; min-height: 300px;
}
.title-bar {
    height: 35px; background: #1a1d24;
    border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 10px; cursor: grab;
}
.title-bar:active { cursor: grabbing; }
.title-text { color: #aaa; font-size: 13px; font-weight: bold; }
.window-controls { display: flex; gap: 8px; }
.win-btn {
    width: 14px; height: 14px; border-radius: 50%; border: none; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    font-size: 8px; color: transparent; transition: 0.2s;
}
.win-btn:hover { color: rgba(0,0,0,0.6); }
.close { background: #ff5f56; }
.min { background: #ffbd2e; }
.max { background: #27c93f; }
.window-body { flex: 1; padding: 15px; display: flex; flex-direction: column; color: var(--kali-text); overflow: hidden; }

/* --- Specifics for Task Manager --- */
.kali-menu { margin-bottom: 15px; font-size: 13px; color: #888; }
.kali-menu span { margin-right: 15px; cursor: pointer; }
.kali-menu span:hover { color: white; }
.input-section {
    display: flex; align-items: center; background: #181a1f;
    padding: 10px; border-radius: 4px; border: 1px solid var(--border); margin-bottom: 15px;
}
.prompt { color: var(--kali-blue); font-family: 'Fira Code', monospace; margin-right: 10px; font-size: 14px; }
.input-section input {
    flex: 1; background: transparent; border: none;
    color: white; font-family: 'Fira Code', monospace; font-size: 14px; outline: none;
}
button#execBtn {
    background: var(--kali-blue); color: white; border: none;
    padding: 5px 15px; border-radius: 3px; cursor: pointer; font-weight: bold;
}
.kali-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.tab-btn {
    background: transparent; border: none; color: #888;
    padding: 8px 15px; cursor: pointer; font-size: 12px; font-weight: bold;
    border-bottom: 2px solid transparent;
}
.tab-btn.active { color: white; border-bottom-color: var(--kali-blue); }
.terminal-view {
    flex: 1; overflow-y: auto; background: #1f2229;
    padding: 10px; margin-bottom: 10px; font-family: 'Fira Code', monospace;
}
ul { list-style: none; padding: 0; margin: 0; }
li { padding: 8px; border-bottom: 1px solid #2d323e; display: flex; align-items: center; font-size: 13px; }
li:hover { background: #2d323e; }
.check-box {
    width: 16px; height: 16px; border: 2px solid #555; border-radius: 3px;
    margin-right: 10px; cursor: pointer; display: flex; justify-content: center; align-items: center;
}
.completed .check-box { border-color: var(--kali-blue); background: rgba(0,153,255,0.1); }
.completed .check-box::after { content: '✓'; color: var(--kali-blue); font-size: 10px; }
.completed .task-content { color: #555; text-decoration: line-through; }
.task-content { flex: 1; }
.btn-del { color: #ff5f56; cursor: pointer; background: none; border: none; opacity: 0.5; }
.btn-del:hover { opacity: 1; }
.status-footer { display: flex; justify-content: space-between; font-size: 11px; color: #666; }

/* --- File Manager & SSH Styles --- */
.address-bar { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; color: white; }
.address-bar input { flex: 1; background: #111; border: 1px solid #444; color: #ccc; padding: 5px; font-family: 'Fira Code', monospace; font-size: 12px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; height: 100%; overflow-y: auto; }
.file-item { display: flex; flex-direction: column; align-items: center; padding: 10px; cursor: pointer; color: #ccc; text-align: center; }
.file-item:hover { background: rgba(255,255,255,0.1); color: white; }
.file-item i { font-size: 32px; margin-bottom: 8px; color: #e6b450; }
.file-item.is-file i { color: #ccc; font-size: 28px; }
.file-name { font-size: 11px; word-break: break-all; }
.terminal-body { background: #0c0c0c; font-family: 'Fira Code', monospace; overflow-y: auto; padding: 10px; color: #ccc; flex: 1; font-size: 13px; border: 1px solid #333; }
.term-input-line { background: #0c0c0c; display: flex; padding: 8px; align-items: center; border: 1px solid #333; border-top: none; }
.term-input-line input { background: transparent; border: none; color: white; flex: 1; outline: none; font-family: 'Fira Code', monospace; font-size: 13px; margin-left: 5px; }

/* --- Resizers --- */
.resizer { position: absolute; background: transparent; }
.resizer.bottom-right { width: 20px; height: 20px; right: 0; bottom: 0; cursor: se-resize; }
.resizer.bottom { height: 5px; bottom: 0; left: 0; width: 100%; cursor: ns-resize; }
.resizer.right { width: 5px; right: 0; top: 0; height: 100%; cursor: ew-resize; }
.hidden { display: none !important; }
.maximized { top: 30px !important; left: 0 !important; width: 100% !important; height: calc(100vh - 30px) !important; border-radius: 0 !important; }