:root {
    /* KDE Plastik Palette */
    --plastik-bg: #eff0f2;
    --plastik-panel: #dce1e5;
    --plastik-border-light: #ffffff;
    --plastik-border-dark: #8c96a3;
    --plastik-header-top: #8da4be;
    --plastik-header-btm: #637c97;
    --plastik-text: #222;
    --plastik-link-hover: rgba(255, 255, 255, 0.3);
    
    /* Dimensions */
    --kicker-height: 42px;
}

body {
    background-color: var(--plastik-bg);
    font-family: 'Tahoma', 'Verdana', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--plastik-text);
    padding-top: var(--kicker-height); /* Make room for fixed header */
}

/* --- KICKER PANEL (Fixed Top Bar) --- */
.kicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--kicker-height);
    background: linear-gradient(to bottom, var(--plastik-header-top), var(--plastik-header-btm));
    border-bottom: 1px solid #3b4c60;
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    box-sizing: border-box;
}

/* The "Start" Button */
.k-menu-btn {
    background: transparent;
    border: 1px solid transparent;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 13px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.k-menu-btn:hover, .k-menu-btn.active {
    background-color: var(--plastik-link-hover);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.k-menu-icon {
    font-size: 16px;
}

/* Navigation Links */
.kicker-nav {
    display: flex;
    margin-left: 10px;
    gap: 2px;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: all 0.1s;
}

.nav-link:hover {
    background-color: var(--plastik-link-hover);
}

.nav-link.active {
    background-color: rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.3);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* System Tray */
.system-tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    color: white;
    font-size: 12px;
    gap: 15px;
    padding-right: 10px;
}

.tray-clock {
    background: rgba(0,0,0,0.1);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* --- RESPONSIVE MOBILE MENU --- */
@media (max-width: 768px) {
    .kicker-nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: var(--kicker-height);
        left: 0;
        background-color: var(--plastik-bg);
        border: 1px solid var(--plastik-border-dark);
        border-top: none;
        width: 200px;
        flex-direction: column;
        margin: 0;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
        padding: 5px;
    }

    .kicker-nav.open {
        display: flex;
    }

    .nav-link {
        color: #333; /* Dark text for drop down */
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover, .nav-link.active {
        background-color: #637c97; /* Blue highlight */
        color: white;
        border-color: #3b4c60;
        box-shadow: none;
    }
    
    /* Hide specific text on mobile tray if needed */
    .user-greeting { display: none; }
}

/* --- GENERAL LAYOUT --- */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Portlet (Widget) Styles */
.portlet {
    background: #fcfcfc;
    border: 1px solid var(--plastik-border-dark);
    border-radius: 3px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.portlet-header {
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    padding: 8px 12px;
    font-weight: bold;
    color: #444;
    border-bottom: 1px solid #aaa;
    border-radius: 2px 2px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portlet-content {
    padding: 15px;
}

/* Buttons */
.btn {
    background: linear-gradient(to bottom, #ffffff, #dddddd);
    border: 1px solid #999;
    padding: 5px 12px;
    border-radius: 3px;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: linear-gradient(to bottom, #ffffff, #eeeeee);
    border-color: #666;
}

.btn:active {
    background: #cccccc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary {
    font-weight: bold;
}

/* --- TASKS MODULE STYLES --- */

/* Priority Badges */
.badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    border: 1px solid rgba(0,0,0,0.2);
}
.badge-high { background-color: #d9534f; } /* Red */
.badge-med  { background-color: #337ab7; } /* Blue */
.badge-low  { background-color: #5cb85c; } /* Green */

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ccc;
}
.data-table th {
    background: #eaeaea;
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    font-size: 11px;
}
.data-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
/* Zebra Striping */
.data-table tr:nth-child(even) { background-color: #f9f9f9; }
.data-table tr:hover { background-color: #eef3f7; }

/* Tabs */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #aaa;
    margin-bottom: 10px;
    gap: 2px;
}
.tab-link {
    padding: 6px 15px;
    background: #e0e0e0;
    border: 1px solid #aaa;
    border-bottom: none;
    text-decoration: none;
    color: #555;
    border-radius: 3px 3px 0 0;
    font-size: 12px;
}
.tab-link.active {
    background: white;
    font-weight: bold;
    color: #333;
    margin-bottom: -1px; /* Overlap border */
    border-bottom: 1px solid white; 
}

/* --- MODALS --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: black; }

/* --- PROJECT EXPLORER STYLES --- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Responsive Grid */
    gap: 20px;
    padding: 10px 0;
}

.project-folder {
    background: linear-gradient(to bottom, #ffffff, #f2f2f2);
    border: 1px solid #999;
    border-radius: 3px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.1s;
}

.project-folder:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15);
}

/* Status "Top Bar" Accent */
.project-folder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 3px 3px 0 0;
}

/* Status Colors */
.folder-active::before { background: #5cb85c; }   /* Green */
.folder-planning::before { background: #f0ad4e; } /* Orange */
.folder-completed::before { background: #777; }   /* Grey */

.folder-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.folder-desc {
    font-size: 11px;
    color: #666;
    flex-grow: 1; /* Pushes footer down */
    margin-bottom: 10px;
}

.folder-footer {
    border-top: 1px solid #ddd;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888;
}

/* --- NETWATCH STYLES --- */

/* Glossy LED Indicators */
.led {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3), inset 1px 1px 2px rgba(255,255,255,0.5);
    border: 1px solid #666;
    vertical-align: middle;
    margin-right: 5px;
}

.led-green {
    background: radial-gradient(circle at 30% 30%, #8aff8a, #00aa00);
    border-color: #006600;
    box-shadow: 0 0 5px #00ff00; /* Glow effect */
}

.led-red {
    background: radial-gradient(circle at 30% 30%, #ff8a8a, #aa0000);
    border-color: #660000;
}

.led-grey {
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #999);
    border-color: #666;
}

.status-code {
    font-family: monospace;
    font-size: 11px;
    color: #555;
    background: #eaeaea;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

/* --- KEYRING STYLES --- */

.keyring-input-group {
    display: flex;
    gap: 5px;
}

.masked-pass {
    font-family: monospace;
    letter-spacing: 2px;
    color: #888;
}

.copy-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
}
.copy-btn:active { background: #ddd; }