/* ========================================
   XP-STYLE START MENU
   Mitch Ivin-inspired two-column layout
   ======================================== */

.start-menu {
    position: fixed;
    bottom: 44px;
    left: 4px;
    width: 320px;
    background: #FFF;
    border: 1px solid #5A7EDD;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    overflow: visible;
}

.start-menu.hidden {
    display: none;
}

/* ========= HEADER (Blue top bar) ========= */
.start-menu-header {
    background: linear-gradient(180deg, #3F8CF3 0%, #2F6FE0 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #FFF;
}

.start-user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.start-user-info {
    flex: 1;
}

.start-user-name {
    color: #FFF;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.start-user-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    margin-top: 2px;
}

/* ========= SINGLE COLUMN BODY ========= */
.start-menu-body {
    min-height: 300px;
}

.start-menu-body.hidden {
    display: none;
}

/* Programs list */
.start-menu-programs {
    background: #FFF;
    padding: 8px 0;
}

/* ========= MENU ITEMS ========= */

/* Program Items */
.start-menu-programs .start-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 4px;
    margin: 2px 4px;
}

.start-menu-programs .start-menu-item:hover {
    background: linear-gradient(90deg, #FFE6A0 0%, #FFEEB0 100%);
}

.start-menu-programs .start-menu-item.all-programs {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #D4D0C8;
    font-weight: 600;
}

/* Menu Item Icons */
.menu-item-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
}

.menu-item-icon-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
}

/* Menu Item Text */
.menu-item-text {
    flex: 1;
}

.menu-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.menu-item-desc {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
    margin-top: 1px;
}

.arrow {
    font-size: 10px;
    color: #000;
    margin-left: auto;
}


/* Divider */
.start-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #C0C0C0 50%, transparent 100%);
    margin: 6px 8px;
}

/* ========= FOOTER (Blue bottom bar) ========= */
.start-menu-footer {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: linear-gradient(180deg, #2F6FE0 0%, #1B4FB8 100%);
    border-top: 1px solid #5A8EF5;
}

.start-menu-footer .btn {
    flex: 1;
    height: 40px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.start-menu-footer .btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-footer .btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
}

/* ========= ALL PROGRAMS SUBMENU (right panel) ========= */
.all-programs-submenu {
    position: absolute;
    left: 100%;
    bottom: 0;
    width: 200px;
    background: #FFF;
    border: 1px solid #5A7EDD;
    border-left: none;
    border-radius: 0 8px 0 0;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    z-index: 10001;
}

.all-programs-submenu.hidden {
    display: none;
}

.all-programs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #000;
    transition: background 0.15s;
}

.all-programs-item:hover {
    background: linear-gradient(90deg, #FFE6A0 0%, #FFEEB0 100%);
}

.program-icon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: Tahoma, sans-serif;
}

img.program-icon {
    object-fit: contain;
    background: transparent;
}