* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('images/wallpaper.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100vh;
    padding: 6rem 4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dock-container-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.dock-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: fit-content;
    position: relative;
}

.dock-preview .dock-item {
    position: relative;
}

.dock-preview .dock-item:hover {
    z-index: 20;
}

.dock-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dock-item:hover {
    background: #3A3A3A;
    border-color: #4A4A4A;
    transform: scale(1.05);
}

.dock-item-link {
    position: relative;
}

.dock-item-link svg {
    width: 28px;
    height: 28px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip top position */
[data-tooltip-top] {
    position: relative;
}

[data-tooltip-top]::after {
    content: attr(data-tooltip-top);
    position: absolute;
    left: -100px;
    bottom: calc(100% + 12px);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

[data-tooltip-top]:hover::after {
    opacity: 1;
    visibility: visible;
}

.dock-item-add span {
    font-size: 28px;
    font-weight: 300;
}

.dock-item-icon span,
.dock-item-settings span {
    font-size: 24px;
}

/* Horizontal Dock */
.dock-horizontal {
    display: flex;
    align-items: center;
    margin-top: 76px; /* Align with TI placeholder (60px item + 16px gap) */
    position: relative;
    z-index: 10;
}

.dock-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #2A2A2A;
    border: 2px solid #3A3A3A;
    border-radius: 50px;
    padding: 0.5rem 0.75rem;
}

.dock-item-horizontal {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dock-folder {
    background: transparent;
    color: #FFFFFF;
}

.dock-folder svg {
    width: 24px;
    height: 24px;
}

.dock-folder:hover {
    transform: scale(1.1);
}

.dock-color-empty {
    background: transparent;
    border: 2px solid #3A3A3A;
}

.dock-color {
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.dock-color:hover,
.dock-color-empty:hover {
    transform: scale(1.1);
}

.dock-item-add-h {
    background: transparent;
    border: 2px solid #3A3A3A;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 300;
}

.dock-item-add-h:hover {
    background: #3A3A3A;
    transform: scale(1.1);
}

/* Workspace submenu */
.dock-item-workspace {
    position: relative;
}

.workspace-submenu {
    position: absolute;
    right: calc(100% + 20px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.dock-item-workspace:hover .workspace-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Workspace tooltip - appears above submenu */
[data-workspace-tooltip]::after {
    content: attr(data-workspace-tooltip);
    position: absolute;
    right: calc(100% + 115px);
    top: 50%;
    transform: translateX(50%) translateY(-50%) translateY(-55px);
    background: #1a1a1a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

[data-workspace-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Workspace icons in submenu */
.workspace-icon {
    background: transparent;
    border: 2px solid #4A4A4A;
}

.workspace-icon:hover {
    border-color: #6A6A6A;
    background: transparent;
}

.workspace-icon span {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 600;
}
