/* css/layout/taskbar.css */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Hereda la clase .glass-effect global */
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    padding: 0 10px;
    user-select: none;
}

/* --- Botón de Inicio --- */
.start-button {
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #2b71d8 0%, #10418c 100%);
    border: 1px solid #0b2f66;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.1s ease;
}

.start-button:hover {
    filter: brightness(1.2);
}

.start-button:active, .start-button.active {
    transform: scale(0.96);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Aplicaciones Activas --- */
.taskbar-apps {
    flex: 1;
    display: flex;
    gap: 4px;
    margin: 0 15px;
    height: 100%;
    align-items: center;
}

.taskbar-item {
    height: 32px;
    min-width: 36px;
    max-width: 40px;
    padding: 0 8px;
    border-radius: 3px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s ease, border 0.2s ease, transform 0.15s ease, filter 0.15s ease;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.5);
    transform: scale(1.04);
    filter: brightness(1.08);
}

.taskbar-item.active {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 8px rgba(255,255,255,0.8);
}

button,
button[role="tab"],
button[aria-label],
.start-button,
.taskbar-item,
.system-link,
.title-bar-controls button {
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
}

button:hover,
button[role="tab"]:hover,
button[aria-label]:hover,
.start-button:hover,
.taskbar-item:hover,
.system-link:hover,
.title-bar-controls button:hover {
    filter: brightness(1.08);
    transform: scale(1.04);
}

button:active,
button[role="tab"]:active,
button[aria-label]:active,
.start-button:active,
.taskbar-item:active,
.system-link:active,
.title-bar-controls button:active {
    transform: scale(0.98);
}

/* --- System Tray (Reloj) --- */
.system-tray {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 10px;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: -1px 0 0 rgba(255, 255, 255, 0.3);
}

.clock {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    color: var(--text-primary);
    text-shadow: 0 0 4px #fff;
    cursor: default;
}