﻿/* ========================================
   Sidebar Menu - Unique Class Names
   File: sidebar-menu.css
   No conflicts with dashboard.css
   ======================================== */

/* === SIDEBAR NAVIGATION === */
.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin: 0;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .sidebar-nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
        text-decoration: none;
    }

    .sidebar-nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        color: #FFFFFF;
        border-left-color: #FFFFFF;
    }

    /* Smaller nav icons */
    .sidebar-nav-link i {
        width: 16px;
        font-size: 13px;
        text-align: center;
    }

/* === PARTNER LIST (SUBMENU) === */
.sidebar-partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

    /* Vertical Line below My Tests */
    .sidebar-partner-list::before {
        content: '';
        position: absolute;
        left: 32px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: rgba(255, 255, 255, 0.25);
    }

.sidebar-partner-item {
    position: relative;
}

    /* Horizontal line after each partner - NOT touching vertical line */
    .sidebar-partner-item::after {
        content: '';
        position: absolute;
        left: 44px; /* Start after vertical line */
        right: 16px;
        bottom: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.15);
    }

    /* Remove horizontal line from LAST partner */
    .sidebar-partner-item:last-child::after {
        display: none;
    }

/* === PARTNER HEADER (CLICKABLE ROW) === */
.sidebar-partner-header {
    display: flex;
    align-items: center;
    padding: 10px 16px 10px 44px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .sidebar-partner-header:hover {
        background: rgba(255, 255, 255, 0.08);
    }

/* Partner Name - Truncate with ellipsis */
.sidebar-partner-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    flex: 1;
}

/* Arrow - Close to text */
.sidebar-partner-arrow {
    font-size: 9px;
   /* color: rgba(255, 255, 255, 0.5);*/
    transition: transform 0.3s ease;
    margin-left: 30px;
    flex-shrink: 0;
}

    /* Arrow UP when expanded */
    .sidebar-partner-item.expanded .sidebar-partner-arrow,
    .sidebar-partner-arrow.rotated {
        transform: rotate(180deg);
    }

/* Expanded State - Header Background */
.sidebar-partner-item.expanded .sidebar-partner-header {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-partner-item.expanded .sidebar-partner-name {
    color: #FFFFFF;
}

/* === PARTNER PROGRESS MENU (DROPDOWN) === */
.sidebar-partner-menu {
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
    margin-left: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

    /* Show when expanded */
    .sidebar-partner-menu.show {
        display: block;
    }

.sidebar-partner-item.expanded .sidebar-partner-menu {
    display: block;
}

/* === PROGRESS ITEMS === */
.sidebar-progress-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 16px 8px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 11px;
    font-weight: 400;
    transition: all 0.2s ease;
}

    .sidebar-progress-item:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #FFFFFF;
        text-decoration: none;
    }

    .sidebar-progress-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

/* === PROGRESS ICON (CIRCLE) === */
.sidebar-progress-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

    /* Completed - Green filled circle with centered check */
    .sidebar-progress-icon.completed {
        background: #5FAD33;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .sidebar-progress-icon.completed i {
            font-size: 8px;
            line-height: 1;
            display: block;
        }

    /* Pending - Empty circle with solid border */
    .sidebar-progress-icon.pending {
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
    }

    /* Dashed - Plain circle with solid border (NOT dotted) */
    .sidebar-progress-icon.dashed {
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
    }

/* Progress Label - Allow 2 lines */
.sidebar-progress-label {
    flex: 1;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
}

/* Continue Testing Arrow - Smaller */
.sidebar-progress-arrow {
    font-size: 8px;
   /* color: rgba(255, 255, 255, 0.5);*/
    margin-left: auto;
    margin-top: 2px;
}

/* === HELP LINK === */
.sidebar-help-item {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

    .sidebar-help-item .sidebar-nav-link i {
        font-size: 13px;
    }

/* === TOOLTIP FOR FULL NAME ON HOVER === */
.sidebar-partner-header[title] {
    position: relative;
}

    .sidebar-partner-header[title]:hover::after {
        content: attr(title);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: #1F2937;
        color: #FFFFFF;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 11px;
        white-space: nowrap;
        z-index: 9999;
        margin-left: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sidebar-partner-header {
        padding-left: 40px;
    }

    .sidebar-progress-item {
        padding-left: 16px;
    }
}
