/* ========== TASKBAR ========== */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

/* Start Button */
.start-btn {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.start-btn:hover {
    background: rgba(255,255,255,0.1);
}

.start-btn:active {
    transform: scale(0.95);
}

/* Search Box */
.search-box {
    flex: 0 0 300px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}

.search-box i {
    color: rgba(255,255,255,0.6);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    outline: none;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* Taskbar Apps */
.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
}

.taskbar-apps::-webkit-scrollbar {
    height: 4px;
}

/* Taskbar App Button */
.taskbar-app {
    min-width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    color: white;
}

.taskbar-app:hover {
    background: rgba(255,255,255,0.15);
}

.taskbar-app.active {
    background: rgba(255,255,255,0.2);
    border-bottom: 3px solid #667eea;
}

.taskbar-app i {
    font-size: 20px;
}

.taskbar-app .app-name {
    font-size: 13px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-app .close-btn {
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.taskbar-app:hover .close-btn {
    opacity: 1;
}

/* Running Indicator */
.taskbar-app::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
}

/* System Tray */
.system-tray {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 16px;
    padding: 0 10px;
}

.system-tray i {
    cursor: pointer;
    transition: color 0.3s;
}

.system-tray i:hover {
    color: #667eea;
}

#clock {
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}
.taskbar-app .close-btn {
    margin-left: 8px;
    opacity: 0.7;
    transition: all 0.2s;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}

.taskbar-app .close-btn:hover {
    opacity: 1;
    background: rgba(231, 76, 60, 0.8); /* Đỏ khi hover */
    color: white;
    transform: scale(1.1);
}

.taskbar-app .close-btn:active {
    transform: scale(0.95);
}