:host {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mat-nav-list {
    padding-top: 0;
}

.navigation-bottom {
    border-top: 1px solid #333;
    margin-top: auto;
    padding-bottom: 16px;
}

.active {
    transition: all 0.2s ease;
    background: rgba(63, 81, 181, 0.12);
    color: #3f51b5;
    border-left: 4px solid #3f51b5;

    mat-icon {
        color: #3f51b5;
    }
}

mat-divider {
    margin: 8px 0;
}

mat-icon {
    margin-right: 8px;
}

.portal-status-container {
    margin: -10px -10px 0px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: -1;
        opacity: 0.8;
        transition: background 0.3s ease;
    }

    &.status-active::before {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, transparent 100%);
    }
    &.status-inactive::before, &.status-unavailable::before {
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.3) 0%, transparent 100%);
    }
    &.status-expired::before {
        background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, transparent 100%);
    }

    .portal-status-wrapper {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: 100%;
        min-width: 0;
        width: 100%;
    }

    .portal-header {
        display: flex;
        justify-content: center;
        margin-bottom: 4px;
    }

    .portal-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

        mat-icon {
            font-size: 28px;
            width: 28px;
            height: 28px;
            margin: 0;
        }

        &.status-active { color: #4caf50; }
        &.status-inactive, &.status-unavailable { color: #f44336; }
        &.status-expired { color: #ff9800; }
    }

    .portal-info {
        text-align: center;
        
        .portal-name {
            font-size: 16px;
            font-weight: 600;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: rgba(255, 255, 255, 0.95);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-bottom: 4px;
        }

        .portal-label {
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.7);
        }
    }

    .portal-actions {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;

        .action-button {
            width: 36px;
            height: 36px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            
            mat-icon {
                font-size: 20px;
                width: 20px;
                height: 20px;
                margin: 0;
                transition: all 0.2s ease;
            }

            &:hover {
                background: rgba(255, 255, 255, 0.15);
                
                mat-icon {
                    transform: scale(1.1);
                }
            }
        }
    }

    .info-button {
        opacity: 0.7;
        margin-left: 8px;
        &:hover {
            opacity: 1;
        }
    }
}


.nav-section {
    margin: 10px 0;
    padding: 5px 0;

    .nav-group-label {
        padding: 0 16px 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 500;
        opacity: .7;
    }

    .mat-nav-list {
        padding: 0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        overflow: hidden;
    }
}
